[llvm] [WebAssembly] remove instruction after builtin trap (PR #90207)
Congcong Cai via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 26 15:14:52 PDT 2024
HerrCai0907 wrote:
This is what aarch64 llc do, it also drop the all instruction after llvm.trap.
```
define void @foo(ptr %p) {
%a = load i32, ptr %p
call void @llvm.trap()
%b = load i32, ptr %p
ret void
}
```
```
foo: // @foo
.cfi_startproc
// %bb.0:
brk #0x1
ret
```
https://github.com/llvm/llvm-project/pull/90207
More information about the llvm-commits
mailing list