From b61be5e6fb7fe1c4ec8228cdf73f49f11e5a0ac9 Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:47:58 -0400 Subject: Assorted auto-diff enhancements for increased performance & more streamlined auto-diff results (#5394) * Various AD enhancements * Fix issue with pt-loop test * Update pt-loop.slang * More fixes for perf. Final minimal context test now passes. * Fix issue with loop-elimination pass not running after dce * Try fix wgpu test by removing select operator * Disable wgpu * Delete out.wgsl * Remove comments * Update slang-ir-util.cpp * Fix header relative paths for slang-embed * Disbale wgpu for a few other tests * Better way of determining which params to ignore for side-effects * Update slang-ir-dce.cpp * Fix issue with circular reference from previous AD pass being left behind for the next AD pass * Update slang-ir-dce.cpp --- source/slang/slang-lower-to-ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-lower-to-ir.cpp') diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index ecc06ebfd..ce7ab9ac6 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -9898,6 +9898,7 @@ struct DeclLoweringVisitor : DeclVisitor { addVarDecorations(context, irParam, paramDecl); subBuilder->addHighLevelDeclDecoration(irParam, paramDecl); + irParam->sourceLoc = paramDecl->loc; } addParamNameHint(irParam, paramInfo); @@ -9929,6 +9930,7 @@ struct DeclLoweringVisitor : DeclVisitor { addVarDecorations(context, irParam, paramDecl); subBuilder->addHighLevelDeclDecoration(irParam, paramDecl); + irParam->sourceLoc = paramDecl->loc; } addParamNameHint(irParam, paramInfo); paramVal = LoweredValInfo::simple(irParam); -- cgit v1.2.3