From 2f422087ed04940f6b6b351605e61d48ce1989ce Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 10 Jan 2023 12:42:55 -0800 Subject: Nested bwd-diff func call context save/restore. (#2584) Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 00db6bd96..d50cc45a3 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -387,6 +387,8 @@ Result linkAndOptimizeIR( finalizeAutoDiffPass(irModule); + finalizeSpecialization(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) -- cgit v1.2.3