[llvm] [FastISel] Support unreachable with NoTrapAfterNoReturn (PR #118296)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 14:58:15 PST 2024
================
@@ -1851,11 +1851,19 @@ bool FastISel::selectOperator(const User *I, unsigned Opcode) {
return false;
}
- case Instruction::Unreachable:
- if (TM.Options.TrapUnreachable)
+ case Instruction::Unreachable: {
+ if (TM.Options.TrapUnreachable) {
+ if (TM.Options.NoTrapAfterNoreturn) {
+ const auto *Call =
+ dyn_cast_or_null<CallInst>(cast<Instruction>(I)->getPrevNode());
----------------
arsenm wrote:
CallBase?
https://github.com/llvm/llvm-project/pull/118296
More information about the llvm-commits
mailing list