[llvm] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)
Matt Harding via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 15:27:43 PDT 2023
================
@@ -159,6 +207,9 @@ bool WebAssemblyPeephole::runOnMachineFunction(MachineFunction &MF) {
case WebAssembly::RETURN:
Changed |= maybeRewriteToFallthrough(MI, MBB, MF, MFI, MRI, TII);
break;
+ case WebAssembly::UNREACHABLE:
+ Changed |= eraseDeadCodeAroundUnreachable(MI, MBB);
----------------
majaha wrote:
You might be right. I put them together, but in different commits, because the dead code removal does essentially what I wanted NoTrapAfterNoreturn to do.
https://github.com/llvm/llvm-project/pull/65876
More information about the llvm-commits
mailing list