[llvm] a5b07ed - [InstCombine] Add additional instructions in non-term unreachable test (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 07:30:35 PDT 2023
Author: Nikita Popov
Date: 2023-06-22T16:30:03+02:00
New Revision: a5b07eda1b34c0c8592bb85d0da7253a7975e232
URL: https://github.com/llvm/llvm-project/commit/a5b07eda1b34c0c8592bb85d0da7253a7975e232
DIFF: https://github.com/llvm/llvm-project/commit/a5b07eda1b34c0c8592bb85d0da7253a7975e232.diff
LOG: [InstCombine] Add additional instructions in non-term unreachable test (NFC)
Added:
Modified:
llvm/test/Transforms/InstCombine/unreachable-code.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/unreachable-code.ll b/llvm/test/Transforms/InstCombine/unreachable-code.ll
index 516f90f6503c5..5b86c2b4cd340 100644
--- a/llvm/test/Transforms/InstCombine/unreachable-code.ll
+++ b/llvm/test/Transforms/InstCombine/unreachable-code.ll
@@ -192,9 +192,13 @@ default:
define void @non_term_unreachable() {
; CHECK-LABEL: define void @non_term_unreachable() {
+; CHECK-NEXT: call void @dummy()
+; CHECK-NEXT: call void @dummy() #[[ATTR0:[0-9]+]]
; CHECK-NEXT: store i1 true, ptr poison, align 1
; CHECK-NEXT: ret void
;
+ call void @dummy()
+ call void @dummy() nounwind willreturn
store i1 true, ptr poison
call void @dummy()
ret void
More information about the llvm-commits
mailing list