[InstCombine] Add additional instructions in non-term unreachable test (NFC)
authorNikita Popov <npopov@redhat.com>
Thu, 22 Jun 2023 14:29:17 +0000 (16:29 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 22 Jun 2023 14:30:03 +0000 (16:30 +0200)
llvm/test/Transforms/InstCombine/unreachable-code.ll

index 516f90f..5b86c2b 100644 (file)
@@ -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