summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-12-02 10:27:33 -0800
committerGitHub <noreply@github.com>2022-12-02 10:27:33 -0800
commit989ea017ea01eaa8ada66c7d20972be87486ef03 (patch)
tree828623af341b979282659ab6fb9cf73d3092b44a
parentfcffce79de7a16ae66226ccdafb41f1b3afddc25 (diff)
Move `performanceStringInlining` to after `finalizeAutoDiffPass`. (#2550)
Co-authored-by: Yong He <yhe@nvidia.com>
-rw-r--r--source/slang/slang-emit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 065a30672..00db6bd96 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -385,6 +385,8 @@ Result linkAndOptimizeIR(
break;
}
+ finalizeAutoDiffPass(irModule);
+
// If we have a target that is GPU like we use the string hashing mechanism
// but for that to work we need to inline such that calls (or returns) of strings
// boil down into getStringHash(stringLiteral)
@@ -395,8 +397,6 @@ Result linkAndOptimizeIR(
SLANG_RETURN_ON_FAIL(performStringInlining(irModule, sink));
}
- finalizeAutoDiffPass(irModule);
-
lowerReinterpret(targetRequest, irModule, sink);
validateIRModuleIfEnabled(codeGenContext, irModule);