Skip to content

Commit d19e530

Browse files
committed
[UpdateTestChecks][FIX] Expected output changed with Attributor
1 parent fd33cca commit d19e530

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,12 @@
66
%struct.ST = type { i32, double, %struct.RT }
77

88
define i32* @foo(%struct.ST* %s) nounwind uwtable readnone optsize ssp {
9-
; IS__TUNIT____: Function Attrs: nofree nosync nounwind optsize readnone ssp uwtable willreturn
10-
; IS__TUNIT____-LABEL: define {{[^@]+}}@foo
11-
; IS__TUNIT____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #[[ATTR0:[0-9]+]] {
12-
; IS__TUNIT____-NEXT: entry:
13-
; IS__TUNIT____-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13
14-
; IS__TUNIT____-NEXT: ret i32* [[ARRAYIDX]]
15-
;
16-
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind optsize readnone ssp uwtable willreturn
17-
; IS__CGSCC____-LABEL: define {{[^@]+}}@foo
18-
; IS__CGSCC____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #[[ATTR0:[0-9]+]] {
19-
; IS__CGSCC____-NEXT: entry:
20-
; IS__CGSCC____-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13
21-
; IS__CGSCC____-NEXT: ret i32* [[ARRAYIDX]]
9+
; CHECK: Function Attrs: nofree norecurse nosync nounwind optsize readnone ssp uwtable willreturn
10+
; CHECK-LABEL: define {{[^@]+}}@foo
11+
; CHECK-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #[[ATTR0:[0-9]+]] {
12+
; CHECK-NEXT: entry:
13+
; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13
14+
; CHECK-NEXT: ret i32* [[ARRAYIDX]]
2215
;
2316
entry:
2417
%arrayidx = getelementptr inbounds %struct.ST, %struct.ST* %s, i64 1, i32 2, i32 1, i64 5, i64 13

0 commit comments

Comments
 (0)