From 216dfba0af66210a46ef0df18beb73d975fdf727 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 19 Dec 2022 11:47:19 -0800 Subject: Separate primal computations from unzipped function into an explicit function. (#2569) Co-authored-by: Yong He --- source/slang/slang-ir-ssa.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/slang/slang-ir-ssa.cpp') diff --git a/source/slang/slang-ir-ssa.cpp b/source/slang/slang-ir-ssa.cpp index d84b48c3d..2dee189dc 100644 --- a/source/slang/slang-ir-ssa.cpp +++ b/source/slang/slang-ir-ssa.cpp @@ -1237,4 +1237,18 @@ bool constructSSA(IRModule* module) return changed; } +bool constructSSA(IRInst* globalVal) +{ + switch (globalVal->getOp()) + { + case kIROp_Func: + case kIROp_GlobalVar: + return constructSSA(globalVal->getModule(), (IRGlobalValueWithCode*)globalVal); + + default: + break; + } + return false; +} + } -- cgit v1.2.3