Repository navigation
[WebAssembly] Remove the wasm-disable-fix-irreducible-control-flow-pass switch - #185072
Merged
QuantumSegfault merged 1 commit intoMar 6, 2026
Conversation
Member
Author
|
Whoops. No. Sorry. Hold on. |
…lvm#67715)" This reverts commit 85b8958.
QuantumSegfault
force-pushed
the
wasm-remove-disable-fix-irreducible-pass
branch
from
March 6, 2026 18:19
f704c9a to
9b33179
Compare
Member
|
@llvm/pr-subscribers-backend-webassembly Author: Demetrius Kanios (QuantumSegfault) ChangesThis removes the It was originally added in #67715 as a way to avoid the potentially absurd compile times the pass used to bring. However with the successful merge of #184441, the pass itself has been fixed to avoid this issue. Given that, it is no longer necessary nor desirable to keep this switch. 1 Files Affected:
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index ab1b24a4fd9b1..331bd0a360149 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -51,12 +51,6 @@ static cl::opt<bool> WasmDisableExplicitLocals(
" instruction output for test purposes only."),
cl::init(false));
-static cl::opt<bool> WasmDisableFixIrreducibleControlFlowPass(
- "wasm-disable-fix-irreducible-control-flow-pass", cl::Hidden,
- cl::desc("webassembly: disables the fix "
- " irreducible control flow optimization pass"),
- cl::init(false));
-
// Exception handling & setjmp-longjmp handling related options.
// Emscripten's asm.js-style exception handling
@@ -605,8 +599,7 @@ void WebAssemblyPassConfig::addPreEmitPass() {
addPass(createWebAssemblyNullifyDebugValueLists());
// Eliminate multiple-entry loops.
- if (!WasmDisableFixIrreducibleControlFlowPass)
- addPass(createWebAssemblyFixIrreducibleControlFlow());
+ addPass(createWebAssemblyFixIrreducibleControlFlow());
// Do various transformations for exception handling.
// Every CFG-changing optimizations should come before this.
|
Member
Author
|
Okay. Fixed. Ended branching from the other PR branch rather than It's about time I update my |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This removes the
wasm-disable-fix-irreducible-control-flow-passswitch.It was originally added in #67715 as a way to avoid the potentially absurd compile times the pass used to bring. However with the successful merge of #184441, the pass itself has been fixed to avoid this issue.
Given that, it is no longer necessary nor desirable to keep this switch.