[SCCP] Regenerate test checks with function signature (NFC)

The previous checks were manually modified to avoid the label
clash. Use the --function-signature flag that exists for this
purpose.
This commit is contained in:
Nikita Popov 2022-06-03 14:36:47 +02:00
parent 3472b6eb0a
commit fcdc6a466a
2 changed files with 11 additions and 9 deletions

View File

@ -1,9 +1,9 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
; RUN: opt < %s -S -passes=ipsccp | FileCheck %s
define void @main() {
; CHECK-LABEL: @main(
; CHECK: %call = call i1 @patatino(i1 undef)
; CHECK-LABEL: define {{[^@]+}}@main() {
; CHECK-NEXT: [[CALL:%.*]] = call i1 @patatino(i1 undef)
; CHECK-NEXT: ret void
;
%call = call i1 @patatino(i1 undef)
@ -11,11 +11,12 @@ define void @main() {
}
define internal i1 @patatino(i1 %a) {
; CHECK-LABEL: define internal i1 @patatino(
; CHECK-LABEL: define {{[^@]+}}@patatino
; CHECK-SAME: (i1 [[A:%.*]]) {
; CHECK-NEXT: br label [[ONFALSE:%.*]]
; CHECK-EMPTY:
; CHECK-NEXT: onfalse:
; CHECK: onfalse:
; CHECK-NEXT: ret i1 undef
;
br i1 %a, label %ontrue, label %onfalse
ontrue:
ret i1 false

View File

@ -1,4 +1,4 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
; RUN: opt < %s -passes=ipsccp -S | FileCheck %s
; This test case used to end up like this:
@ -15,7 +15,7 @@
; an unconditional branch when ConstantFoldTerminator returned true.
define void @f4() {
; CHECK-LABEL: define void @f4(
; CHECK-LABEL: define {{[^@]+}}@f4() {
; CHECK-NEXT: entry:
; CHECK-NEXT: [[CALL:%.*]] = call i16 @f3(i16 undef)
; CHECK-NEXT: ret void
@ -26,7 +26,8 @@ entry:
}
define internal i16 @f3(i16 %p1) {
; CHECK-LABEL: define internal i16 @f3(
; CHECK-LABEL: define {{[^@]+}}@f3
; CHECK-SAME: (i16 [[P1:%.*]]) {
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[LAND_END:%.*]]
; CHECK: land.end: