3 Commits

Author SHA1 Message Date
Congcong Cai
1a46229636
Revert "Revert "[WebAssembly] remove instruction after builtin trap" (#90354)" (#90366)
`llvm.trap` will be convert as unreachable which is terminator.
Instruction after terminator will cause validation failed.
This PR introduces a pass to clean instruction after terminator.
Fixes: https://github.com/llvm/llvm-project/issues/68770
Reapply: #90207
2024-04-28 10:13:02 +08:00
Mehdi Amini
38a2051c52
Revert "[WebAssembly] remove instruction after builtin trap" (#90354)
Reverts llvm/llvm-project#90207

LLD Bots are broken.
2024-04-27 21:14:46 +02:00
Congcong Cai
ff03f23be8
[WebAssembly] remove instruction after builtin trap (#90207)
`llvm.trap` will be convert as `unreachable` which is terminator.
Instruction after terminator will cause validation failed.
This PR introduces a pass to clean instruction after terminator.
Fixes: #68770.
2024-04-27 22:11:47 +08:00