[SCCP] update test to NPM, update_test_checks. NFC

Pre-committing a test update to make changes in D121744 more visible.
This commit is contained in:
Nick Desaulniers 2022-03-16 13:49:58 -07:00
parent b85922cde6
commit 6ede09b6b7
1 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,5 @@
; RUN: opt < %s -internalize -ipsccp -S | FileCheck %s
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=internalize,ipsccp %s | FileCheck %s
; PR5569
; IPSCCP should prove that the blocks are dead and delete them, and
@ -10,6 +11,10 @@
@bar.l = internal constant [2 x i8*] [i8* blockaddress(@bar, %lab0), i8* blockaddress(@bar, %end)] ; <[2 x i8*]*> [#uses=1]
define void @foo(i32 %x) nounwind readnone {
; CHECK-LABEL: @foo(
; CHECK-NEXT: entry:
; CHECK-NEXT: unreachable
;
entry:
%b = alloca i32, align 4 ; <i32*> [#uses=1]
store volatile i32 -1, i32* %b
@ -17,6 +22,10 @@ entry:
}
define void @bar(i32* nocapture %pc) nounwind readonly {
; CHECK-LABEL: @bar(
; CHECK-NEXT: entry:
; CHECK-NEXT: unreachable
;
entry:
br label %indirectgoto
@ -37,6 +46,10 @@ indirectgoto: ; preds = %lab0, %entry
}
define i32 @main() nounwind readnone {
; CHECK-LABEL: @main(
; CHECK-NEXT: entry:
; CHECK-NEXT: unreachable
;
entry:
ret i32 0
}