From 082c48d96c5f8f6b4f560d705fe731da14409cb4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 29 Mar 2023 17:05:07 -0700 Subject: Update checkpoint policy to make obvious recompute decisions. (#2753) * Update checkpoint policy to make obvious recompute decisions. Also adds an optimization to fold updateElement chains on the same array or struct into a single makeArray or makeStruct. * Bug fixes around array types with different int typed count. * change test. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-lower-to-ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 6d4e50463..3affcff44 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -6446,7 +6446,7 @@ struct DeclLoweringVisitor : DeclVisitor setGlobalValue(context, inheritanceDecl, LoweredValInfo::simple(findOuterMostGeneric(irWitnessTable))); auto irSubType = lowerType(subContext, subType); - irWitnessTable->setOperand(0, irSubType); + irWitnessTable->setConcreteType(irSubType); // TODO(JS): // Should the mangled name take part in obfuscation if enabled? -- cgit v1.2.3