[llvm] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 16:55:21 PDT 2023
================
@@ -37,6 +37,11 @@ static cl::opt<bool>
EnableTrapUnreachable("trap-unreachable", cl::Hidden,
cl::desc("Enable generating trap for unreachable"));
+static cl::opt<bool> EnableNoTrapAfterNoreturn(
+ "no-trap-after-noreturn", cl::Hidden,
+ cl::desc("Do not emit a trap instruction for 'unreachable' IR instructions "
+ "after noreturn calls, even if --trap-unreachable is set."));
----------------
aheejin wrote:
Why do we need this flag? And why do we need to test wasm code with this flag, given that we set it to false?
https://github.com/llvm/llvm-project/pull/65876
More information about the llvm-commits
mailing list