[llvm] [FastISel] Support unreachable with NoTrapAfterNoReturn (PR #118296)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 14:58:16 PST 2024
================
@@ -0,0 +1,13 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O0 -trap-unreachable -no-trap-after-noreturn -fast-isel-abort=3 < %s | FileCheck %s
+
+declare void @foo()
+
+define void @noreturn_unreachable() nounwind {
+; CHECK-LABEL: noreturn_unreachable:
+; CHECK: # %bb.0:
+; CHECK-NEXT: pushq %rax
+; CHECK-NEXT: callq foo at PLT
+ call void @foo() noreturn
+ unreachable
+}
----------------
arsenm wrote:
Check invoke case?
https://github.com/llvm/llvm-project/pull/118296
More information about the llvm-commits
mailing list