summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-single-return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-single-return.cpp')
-rw-r--r--source/slang/slang-ir-single-return.cpp2
1 files changed, 1 insertions, 1 deletions
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