From ac886fd3e329a9599ed1ac7a6d8b26ca5821046c Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 4 Oct 2023 11:20:35 -0700 Subject: SPIRV compiler performance fixes. (#3258) * SPIRV compiler performance fixes. * Cleanup. * update project files * Cleanup debug code. * Make redundancy removal non-recursive. --------- Co-authored-by: Yong He --- source/slang/slang-ir-single-return.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-single-return.cpp') diff --git a/source/slang/slang-ir-single-return.cpp b/source/slang/slang-ir-single-return.cpp index 0b61e5065..519a4f2d4 100644 --- a/source/slang/slang-ir-single-return.cpp +++ b/source/slang/slang-ir-single-return.cpp @@ -18,7 +18,7 @@ struct SingleReturnContext : public InstPassBase void processFunc(IRGlobalValueWithCode* func) { IRBuilder builder(module); - simplifyCFG(func); + simplifyCFG(func, CFGSimplificationOptions::getFast()); // We make use of the `eliminate-multi-level-break` pass to implement the transformation. // To be able to do that, we need to prepare `func` so that the entire function body -- cgit v1.2.3