@@ -37,7 +37,7 @@ define i8* @test2(i8* nonnull %p) {
37
37
38
38
define i8* @test2A (i1 %c , i8* %ret ) {
39
39
; ATTRIBUTOR: define nonnull i8* @test2A(i1 %c, i8* nofree nonnull readnone returned %ret)
40
- ; NOT_CGSCC_OPM: Function Attrs: nofree nosync nounwind willreturn
40
+ ; NOT_CGSCC_OPM: Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn
41
41
; NOT_CGSCC_OPM-LABEL: define {{[^@]+}}@test2A
42
42
; NOT_CGSCC_OPM-SAME: (i1 [[C:%.*]], i8* nofree nonnull readnone returned "no-capture-maybe-returned" [[RET:%.*]]) #[[ATTR0:[0-9]+]] {
43
43
; NOT_CGSCC_OPM-NEXT: br i1 [[C]], label [[A:%.*]], label [[B:%.*]]
@@ -48,7 +48,7 @@ define i8* @test2A(i1 %c, i8* %ret) {
48
48
; NOT_CGSCC_OPM-NEXT: call void @llvm.assume(i1 noundef true) #[[ATTR12]] [ "nonnull"(i8* [[RET]]) ]
49
49
; NOT_CGSCC_OPM-NEXT: ret i8* [[RET]]
50
50
;
51
- ; IS__CGSCC_OPM: Function Attrs: nofree nosync nounwind willreturn
51
+ ; IS__CGSCC_OPM: Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn
52
52
; IS__CGSCC_OPM-LABEL: define {{[^@]+}}@test2A
53
53
; IS__CGSCC_OPM-SAME: (i1 [[C:%.*]], i8* nofree nonnull readnone returned "no-capture-maybe-returned" [[RET:%.*]]) #[[ATTR0:[0-9]+]] {
54
54
; IS__CGSCC_OPM-NEXT: br i1 [[C]], label [[A:%.*]], label [[B:%.*]]
70
70
71
71
define i8* @test2B (i1 %c , i8* %ret ) {
72
72
; ATTRIBUTOR: define nonnull dereferenceable(4) i8* @test2B(i1 %c, i8* nofree nonnull readnone returned dereferenceable(4) %ret)
73
- ; NOT_CGSCC_OPM: Function Attrs: nofree nosync nounwind willreturn
73
+ ; NOT_CGSCC_OPM: Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn
74
74
; NOT_CGSCC_OPM-LABEL: define {{[^@]+}}@test2B
75
75
; NOT_CGSCC_OPM-SAME: (i1 [[C:%.*]], i8* nofree nonnull readnone returned dereferenceable(4) "no-capture-maybe-returned" [[RET:%.*]]) #[[ATTR0]] {
76
76
; NOT_CGSCC_OPM-NEXT: br i1 [[C]], label [[A:%.*]], label [[B:%.*]]
@@ -81,7 +81,7 @@ define i8* @test2B(i1 %c, i8* %ret) {
81
81
; NOT_CGSCC_OPM-NEXT: call void @llvm.assume(i1 noundef true) #[[ATTR12]] [ "dereferenceable"(i8* [[RET]], i32 4) ]
82
82
; NOT_CGSCC_OPM-NEXT: ret i8* [[RET]]
83
83
;
84
- ; IS__CGSCC_OPM: Function Attrs: nofree nosync nounwind willreturn
84
+ ; IS__CGSCC_OPM: Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn
85
85
; IS__CGSCC_OPM-LABEL: define {{[^@]+}}@test2B
86
86
; IS__CGSCC_OPM-SAME: (i1 [[C:%.*]], i8* nofree nonnull readnone returned dereferenceable(4) "no-capture-maybe-returned" [[RET:%.*]]) #[[ATTR0]] {
87
87
; IS__CGSCC_OPM-NEXT: br i1 [[C]], label [[A:%.*]], label [[B:%.*]]
@@ -335,14 +335,14 @@ define i8* @test9(i8* %a, i64 %n) {
335
335
; ATTRIBUTOR_OPM: define i8* @test10
336
336
; ATTRIBUTOR_NPM: define nonnull i8* @test10
337
337
define i8* @test10 (i8* %a , i64 %n ) {
338
- ; NOT_CGSCC_OPM: Function Attrs: nofree nosync nounwind willreturn
338
+ ; NOT_CGSCC_OPM: Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn
339
339
; NOT_CGSCC_OPM-LABEL: define {{[^@]+}}@test10
340
340
; NOT_CGSCC_OPM-SAME: (i8* nofree readnone "no-capture-maybe-returned" [[A:%.*]], i64 [[N:%.*]]) #[[ATTR0]] {
341
341
; NOT_CGSCC_OPM-NEXT: call void @llvm.assume(i1 noundef true) #[[ATTR12]]
342
342
; NOT_CGSCC_OPM-NEXT: [[B:%.*]] = getelementptr inbounds i8, i8* [[A]], i64 [[N]]
343
343
; NOT_CGSCC_OPM-NEXT: ret i8* [[B]]
344
344
;
345
- ; IS__CGSCC_OPM: Function Attrs: nofree nosync nounwind willreturn
345
+ ; IS__CGSCC_OPM: Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn
346
346
; IS__CGSCC_OPM-LABEL: define {{[^@]+}}@test10
347
347
; IS__CGSCC_OPM-SAME: (i8* nofree readnone "no-capture-maybe-returned" [[A:%.*]], i64 [[N:%.*]]) #[[ATTR0]] {
348
348
; IS__CGSCC_OPM-NEXT: call void @llvm.assume(i1 noundef true) #[[ATTR13]]
@@ -1718,7 +1718,7 @@ declare void @nonnull_callee(i8* nonnull %p)
1718
1718
attributes #0 = { null_pointer_is_valid }
1719
1719
attributes #1 = { nounwind willreturn}
1720
1720
;.
1721
- ; IS__TUNIT____: attributes #[[ATTR0]] = { nofree nosync nounwind willreturn }
1721
+ ; IS__TUNIT____: attributes #[[ATTR0]] = { inaccessiblememonly nofree nosync nounwind willreturn }
1722
1722
; IS__TUNIT____: attributes #[[ATTR1]] = { nofree nosync nounwind readnone willreturn }
1723
1723
; IS__TUNIT____: attributes #[[ATTR2]] = { nofree noreturn nosync nounwind readnone }
1724
1724
; IS__TUNIT____: attributes #[[ATTR3]] = { noreturn }
@@ -1734,7 +1734,7 @@ attributes #1 = { nounwind willreturn}
1734
1734
; IS__TUNIT____: attributes #[[ATTR13]] = { nofree nosync nounwind readonly }
1735
1735
; IS__TUNIT____: attributes #[[ATTR14]] = { readonly willreturn }
1736
1736
;.
1737
- ; IS__CGSCC_OPM: attributes #[[ATTR0]] = { nofree nosync nounwind willreturn }
1737
+ ; IS__CGSCC_OPM: attributes #[[ATTR0]] = { inaccessiblememonly nofree nosync nounwind willreturn }
1738
1738
; IS__CGSCC_OPM: attributes #[[ATTR1]] = { nofree norecurse nosync nounwind readnone willreturn }
1739
1739
; IS__CGSCC_OPM: attributes #[[ATTR2]] = { nofree noreturn nosync nounwind readnone }
1740
1740
; IS__CGSCC_OPM: attributes #[[ATTR3]] = { nofree nosync nounwind readnone willreturn }
@@ -1751,7 +1751,7 @@ attributes #1 = { nounwind willreturn}
1751
1751
; IS__CGSCC_OPM: attributes #[[ATTR14]] = { nofree nosync nounwind readonly }
1752
1752
; IS__CGSCC_OPM: attributes #[[ATTR15]] = { readonly willreturn }
1753
1753
;.
1754
- ; IS__CGSCC_NPM: attributes #[[ATTR0]] = { nofree nosync nounwind willreturn }
1754
+ ; IS__CGSCC_NPM: attributes #[[ATTR0]] = { inaccessiblememonly nofree nosync nounwind willreturn }
1755
1755
; IS__CGSCC_NPM: attributes #[[ATTR1]] = { nofree norecurse nosync nounwind readnone willreturn }
1756
1756
; IS__CGSCC_NPM: attributes #[[ATTR2]] = { nofree noreturn nosync nounwind readnone }
1757
1757
; IS__CGSCC_NPM: attributes #[[ATTR3]] = { noreturn }
0 commit comments