[llvm] 82a4b0b - [Attributor] Regenerate test checks (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 3 07:59:47 PST 2022
Author: Nikita Popov
Date: 2022-03-03T16:59:39+01:00
New Revision: 82a4b0b958f31a09b3347a50a0f2ca92c6017f64
URL: https://github.com/llvm/llvm-project/commit/82a4b0b958f31a09b3347a50a0f2ca92c6017f64
DIFF: https://github.com/llvm/llvm-project/commit/82a4b0b958f31a09b3347a50a0f2ca92c6017f64.diff
LOG: [Attributor] Regenerate test checks (NFC)
Added:
Modified:
llvm/test/Transforms/Attributor/value-simplify.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/Attributor/value-simplify.ll b/llvm/test/Transforms/Attributor/value-simplify.ll
index 5500e5c4ab1dd..4bd0e5a66434b 100644
--- a/llvm/test/Transforms/Attributor/value-simplify.ll
+++ b/llvm/test/Transforms/Attributor/value-simplify.ll
@@ -1100,24 +1100,103 @@ join:
}
define i1 @test_liveness(i1 %c) {
+; IS__TUNIT_OPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS__TUNIT_OPM-LABEL: define {{[^@]+}}@test_liveness
+; IS__TUNIT_OPM-SAME: (i1 [[C:%.*]]) #[[ATTR1]] {
+; IS__TUNIT_OPM-NEXT: entry:
+; IS__TUNIT_OPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS__TUNIT_OPM: t:
+; IS__TUNIT_OPM-NEXT: br label [[F]]
+; IS__TUNIT_OPM: f:
+; IS__TUNIT_OPM-NEXT: [[P:%.*]] = phi i1 [ true, [[ENTRY:%.*]] ], [ false, [[T]] ]
+; IS__TUNIT_OPM-NEXT: [[RC1:%.*]] = call noundef i1 @ret(i1 noundef [[P]]) #[[ATTR5]]
+; IS__TUNIT_OPM-NEXT: ret i1 [[RC1]]
+;
+; IS__TUNIT_NPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS__TUNIT_NPM-LABEL: define {{[^@]+}}@test_liveness
+; IS__TUNIT_NPM-SAME: (i1 [[C:%.*]]) #[[ATTR1]] {
+; IS__TUNIT_NPM-NEXT: entry:
+; IS__TUNIT_NPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS__TUNIT_NPM: t:
+; IS__TUNIT_NPM-NEXT: br label [[F]]
+; IS__TUNIT_NPM: f:
+; IS__TUNIT_NPM-NEXT: [[P:%.*]] = phi i1 [ true, [[ENTRY:%.*]] ], [ false, [[T]] ]
+; IS__TUNIT_NPM-NEXT: [[RC1:%.*]] = call noundef i1 @ret(i1 noundef [[P]]) #[[ATTR4]]
+; IS__TUNIT_NPM-NEXT: ret i1 [[RC1]]
+;
+; IS__CGSCC_OPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS__CGSCC_OPM-LABEL: define {{[^@]+}}@test_liveness
+; IS__CGSCC_OPM-SAME: (i1 [[C:%.*]]) #[[ATTR1]] {
+; IS__CGSCC_OPM-NEXT: entry:
+; IS__CGSCC_OPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS__CGSCC_OPM: t:
+; IS__CGSCC_OPM-NEXT: br label [[F]]
+; IS__CGSCC_OPM: f:
+; IS__CGSCC_OPM-NEXT: [[P:%.*]] = phi i1 [ true, [[ENTRY:%.*]] ], [ false, [[T]] ]
+; IS__CGSCC_OPM-NEXT: [[RC1:%.*]] = call noundef i1 @ret(i1 noundef [[P]]) #[[ATTR7:[0-9]+]]
+; IS__CGSCC_OPM-NEXT: ret i1 [[RC1]]
+;
+; IS__CGSCC_NPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS__CGSCC_NPM-LABEL: define {{[^@]+}}@test_liveness
+; IS__CGSCC_NPM-SAME: (i1 [[C:%.*]]) #[[ATTR1]] {
+; IS__CGSCC_NPM-NEXT: entry:
+; IS__CGSCC_NPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS__CGSCC_NPM: t:
+; IS__CGSCC_NPM-NEXT: br label [[F]]
+; IS__CGSCC_NPM: f:
+; IS__CGSCC_NPM-NEXT: ret i1 false
+;
entry:
- br i1 %c, label %t, label %f
+ br i1 %c, label %t, label %f
t:
- br label %f
+ br label %f
f:
- %p = phi i1 [true, %entry], [false, %t]
- %rc1 = call i1 @ret(i1 %p)
- ret i1 %rc1
+ %p = phi i1 [true, %entry], [false, %t]
+ %rc1 = call i1 @ret(i1 %p)
+ ret i1 %rc1
}
define internal i1 @ret(i1 %c) {
+; IS________OPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS________OPM-LABEL: define {{[^@]+}}@ret
+; IS________OPM-SAME: (i1 noundef [[C:%.*]]) #[[ATTR1]] {
+; IS________OPM-NEXT: entry:
+; IS________OPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS________OPM: t:
+; IS________OPM-NEXT: br label [[F]]
+; IS________OPM: f:
+; IS________OPM-NEXT: [[P:%.*]] = phi i1 [ [[C]], [[ENTRY:%.*]] ], [ false, [[T]] ]
+; IS________OPM-NEXT: ret i1 [[P]]
+;
+; IS__TUNIT_NPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS__TUNIT_NPM-LABEL: define {{[^@]+}}@ret
+; IS__TUNIT_NPM-SAME: (i1 noundef [[C:%.*]]) #[[ATTR1]] {
+; IS__TUNIT_NPM-NEXT: entry:
+; IS__TUNIT_NPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS__TUNIT_NPM: t:
+; IS__TUNIT_NPM-NEXT: br label [[F]]
+; IS__TUNIT_NPM: f:
+; IS__TUNIT_NPM-NEXT: [[P:%.*]] = phi i1 [ [[C]], [[ENTRY:%.*]] ], [ false, [[T]] ]
+; IS__TUNIT_NPM-NEXT: ret i1 false
+;
+; IS__CGSCC_NPM: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
+; IS__CGSCC_NPM-LABEL: define {{[^@]+}}@ret
+; IS__CGSCC_NPM-SAME: (i1 noundef [[C:%.*]]) #[[ATTR1]] {
+; IS__CGSCC_NPM-NEXT: entry:
+; IS__CGSCC_NPM-NEXT: br i1 [[C]], label [[T:%.*]], label [[F:%.*]]
+; IS__CGSCC_NPM: t:
+; IS__CGSCC_NPM-NEXT: br label [[F]]
+; IS__CGSCC_NPM: f:
+; IS__CGSCC_NPM-NEXT: [[P:%.*]] = phi i1 [ [[C]], [[ENTRY:%.*]] ], [ false, [[T]] ]
+; IS__CGSCC_NPM-NEXT: ret i1 undef
+;
entry:
- br i1 %c, label %t, label %f
+ br i1 %c, label %t, label %f
t:
- br label %f
+ br label %f
f:
- %p = phi i1 [%c, %entry], [false, %t]
- ret i1 %p
+ %p = phi i1 [%c, %entry], [false, %t]
+ ret i1 %p
}
;.
@@ -1145,6 +1224,7 @@ f:
; IS__CGSCC_OPM: attributes #[[ATTR4]] = { nofree norecurse nosync nounwind willreturn writeonly }
; IS__CGSCC_OPM: attributes #[[ATTR5]] = { willreturn }
; IS__CGSCC_OPM: attributes #[[ATTR6]] = { nounwind willreturn writeonly }
+; IS__CGSCC_OPM: attributes #[[ATTR7]] = { readnone willreturn }
;.
; IS__CGSCC_NPM: attributes #[[ATTR0]] = { nofree nosync nounwind willreturn }
; IS__CGSCC_NPM: attributes #[[ATTR1]] = { nofree norecurse nosync nounwind readnone willreturn }
More information about the llvm-commits
mailing list