Skip to content

Commit a6b14ba

Browse files
committed
[Attributor][NFC] Strip check lines not used while 3 tests are partially disable
The three tests modified by this commit have been partially disabled (one run line is commented out). As a consequence subsequent updates will have weird effects on the check lines. This is a commit to avoid such effects by making the check lines match the three remaining run lines.
1 parent 2891b00 commit a6b14ba

File tree

3 files changed

+136
-137
lines changed

3 files changed

+136
-137
lines changed

llvm/test/Transforms/Attributor/ArgumentPromotion/fp80.ll

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,22 @@ define internal i64 @CaptureAStruct(%struct.Foo* byval %a) {
7272
; IS__CGSCC_OPM-NEXT: [[GEP]] = getelementptr [[STRUCT_FOO:%.*]], %struct.Foo* [[A]], i64 0
7373
; IS__CGSCC_OPM-NEXT: br label [[LOOP]]
7474
;
75-
; IS__CGSCC_NPM-LABEL: define {{[^@]+}}@CaptureAStruct
76-
; IS__CGSCC_NPM-SAME: (i32 [[TMP0:%.*]], i64 [[TMP1:%.*]])
77-
; IS__CGSCC_NPM-NEXT: entry:
78-
; IS__CGSCC_NPM-NEXT: [[A_PRIV:%.*]] = alloca [[STRUCT_FOO:%.*]]
79-
; IS__CGSCC_NPM-NEXT: [[A_PRIV_CAST:%.*]] = bitcast %struct.Foo* [[A_PRIV]] to i32*
80-
; IS__CGSCC_NPM-NEXT: store i32 [[TMP0]], i32* [[A_PRIV_CAST]]
81-
; IS__CGSCC_NPM-NEXT: [[A_PRIV_0_1:%.*]] = getelementptr [[STRUCT_FOO]], %struct.Foo* [[A_PRIV]], i32 0, i32 1
82-
; IS__CGSCC_NPM-NEXT: store i64 [[TMP1]], i64* [[A_PRIV_0_1]]
83-
; IS__CGSCC_NPM-NEXT: [[A_PTR:%.*]] = alloca %struct.Foo*
84-
; IS__CGSCC_NPM-NEXT: br label [[LOOP:%.*]]
85-
; IS__CGSCC_NPM: loop:
86-
; IS__CGSCC_NPM-NEXT: [[PHI:%.*]] = phi %struct.Foo* [ null, [[ENTRY:%.*]] ], [ [[GEP:%.*]], [[LOOP]] ]
87-
; IS__CGSCC_NPM-NEXT: [[TMP2:%.*]] = phi %struct.Foo* [ [[A_PRIV]], [[ENTRY]] ], [ [[TMP2]], [[LOOP]] ]
88-
; IS__CGSCC_NPM-NEXT: store %struct.Foo* [[PHI]], %struct.Foo** [[A_PTR]], align 8
89-
; IS__CGSCC_NPM-NEXT: [[GEP]] = getelementptr [[STRUCT_FOO]], %struct.Foo* [[A_PRIV]], i64 0
90-
; IS__CGSCC_NPM-NEXT: br label [[LOOP]]
75+
; IS__CGSCC____-LABEL: define {{[^@]+}}@CaptureAStruct
76+
; IS__CGSCC____-SAME: (i32 [[TMP0:%.*]], i64 [[TMP1:%.*]])
77+
; IS__CGSCC____-NEXT: entry:
78+
; IS__CGSCC____-NEXT: [[A_PRIV:%.*]] = alloca [[STRUCT_FOO:%.*]]
79+
; IS__CGSCC____-NEXT: [[A_PRIV_CAST:%.*]] = bitcast %struct.Foo* [[A_PRIV]] to i32*
80+
; IS__CGSCC____-NEXT: store i32 [[TMP0]], i32* [[A_PRIV_CAST]]
81+
; IS__CGSCC____-NEXT: [[A_PRIV_0_1:%.*]] = getelementptr [[STRUCT_FOO]], %struct.Foo* [[A_PRIV]], i32 0, i32 1
82+
; IS__CGSCC____-NEXT: store i64 [[TMP1]], i64* [[A_PRIV_0_1]]
83+
; IS__CGSCC____-NEXT: [[A_PTR:%.*]] = alloca %struct.Foo*
84+
; IS__CGSCC____-NEXT: br label [[LOOP:%.*]]
85+
; IS__CGSCC____: loop:
86+
; IS__CGSCC____-NEXT: [[PHI:%.*]] = phi %struct.Foo* [ null, [[ENTRY:%.*]] ], [ [[GEP:%.*]], [[LOOP]] ]
87+
; IS__CGSCC____-NEXT: [[TMP2:%.*]] = phi %struct.Foo* [ [[A_PRIV]], [[ENTRY]] ], [ [[TMP2]], [[LOOP]] ]
88+
; IS__CGSCC____-NEXT: store %struct.Foo* [[PHI]], %struct.Foo** [[A_PTR]], align 8
89+
; IS__CGSCC____-NEXT: [[GEP]] = getelementptr [[STRUCT_FOO]], %struct.Foo* [[A_PRIV]], i64 0
90+
; IS__CGSCC____-NEXT: br label [[LOOP]]
9191
;
9292
entry:
9393
%a_ptr = alloca %struct.Foo*

llvm/test/Transforms/Attributor/liveness.ll

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,17 +1546,17 @@ define void @useless_arg_ext_int_ext(i32* %a) {
15461546
; FIXME: We should fold terminators.
15471547

15481548
define internal i32 @switch_default(i64 %i) nounwind {
1549-
; IS__TUNIT____-LABEL: define {{[^@]+}}@switch_default()
1550-
; IS__TUNIT____-NEXT: entry:
1551-
; IS__TUNIT____-NEXT: switch i64 0, label [[SW_DEFAULT:%.*]] [
1552-
; IS__TUNIT____-NEXT: i64 3, label [[RETURN:%.*]]
1553-
; IS__TUNIT____-NEXT: i64 10, label [[RETURN]]
1554-
; IS__TUNIT____-NEXT: ]
1555-
; IS__TUNIT____: sw.default:
1556-
; IS__TUNIT____-NEXT: call void @sink()
1557-
; IS__TUNIT____-NEXT: ret i32 undef
1558-
; IS__TUNIT____: return:
1559-
; IS__TUNIT____-NEXT: unreachable
1549+
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@switch_default()
1550+
; NOT_CGSCC_NPM-NEXT: entry:
1551+
; NOT_CGSCC_NPM-NEXT: switch i64 0, label [[SW_DEFAULT:%.*]] [
1552+
; NOT_CGSCC_NPM-NEXT: i64 3, label [[RETURN:%.*]]
1553+
; NOT_CGSCC_NPM-NEXT: i64 10, label [[RETURN]]
1554+
; NOT_CGSCC_NPM-NEXT: ]
1555+
; NOT_CGSCC_NPM: sw.default:
1556+
; NOT_CGSCC_NPM-NEXT: call void @sink()
1557+
; NOT_CGSCC_NPM-NEXT: ret i32 undef
1558+
; NOT_CGSCC_NPM: return:
1559+
; NOT_CGSCC_NPM-NEXT: unreachable
15601560
;
15611561
; IS__CGSCC____-LABEL: define {{[^@]+}}@switch_default()
15621562
; IS__CGSCC____-NEXT: entry:
@@ -1637,10 +1637,10 @@ define void @call_via_pointer_with_dead_args(i32* %a, i32* %b, void (i32*, i32*,
16371637
}
16381638
; FIXME: We have to prevent the propagation of %fp in the new pm CGSCC pass until the CallGraphUpdater can handle the new call edge.
16391639
define internal void @call_via_pointer_with_dead_args_internal_a(i32* %a, i32* %b, void (i32*, i32*, i32*, i64, i32**)* %fp) {
1640-
; IS__TUNIT____-LABEL: define {{[^@]+}}@call_via_pointer_with_dead_args_internal_a
1641-
; IS__TUNIT____-SAME: (i32* [[A:%.*]], i32* nonnull align 128 dereferenceable(4) [[B:%.*]], void (i32*, i32*, i32*, i64, i32**)* nocapture nofree nonnull [[FP:%.*]])
1642-
; IS__TUNIT____-NEXT: call void @called_via_pointer(i32* [[A]], i32* nonnull align 128 dereferenceable(4) [[B]], i32* [[A]], i64 -1, i32** null)
1643-
; IS__TUNIT____-NEXT: ret void
1640+
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@call_via_pointer_with_dead_args_internal_a
1641+
; NOT_CGSCC_NPM-SAME: (i32* [[A:%.*]], i32* nonnull align 128 dereferenceable(4) [[B:%.*]], void (i32*, i32*, i32*, i64, i32**)* nocapture nofree nonnull [[FP:%.*]])
1642+
; NOT_CGSCC_NPM-NEXT: call void @called_via_pointer(i32* [[A]], i32* nonnull align 128 dereferenceable(4) [[B]], i32* [[A]], i64 -1, i32** null)
1643+
; NOT_CGSCC_NPM-NEXT: ret void
16441644
;
16451645
; IS__CGSCC____-LABEL: define {{[^@]+}}@call_via_pointer_with_dead_args_internal_a
16461646
; IS__CGSCC____-SAME: (i32* [[A:%.*]], i32* [[B:%.*]], void (i32*, i32*, i32*, i64, i32**)* nocapture nofree nonnull [[FP:%.*]])
@@ -1651,10 +1651,10 @@ define internal void @call_via_pointer_with_dead_args_internal_a(i32* %a, i32* %
16511651
ret void
16521652
}
16531653
define internal void @call_via_pointer_with_dead_args_internal_b(i32* %a, i32* %b, void (i32*, i32*, i32*, i64, i32**)* %fp) {
1654-
; IS__TUNIT____-LABEL: define {{[^@]+}}@call_via_pointer_with_dead_args_internal_b
1655-
; IS__TUNIT____-SAME: (i32* [[A:%.*]], i32* nonnull align 128 dereferenceable(4) [[B:%.*]], void (i32*, i32*, i32*, i64, i32**)* nocapture nofree nonnull [[FP:%.*]])
1656-
; IS__TUNIT____-NEXT: call void @called_via_pointer_internal_2(i32* [[A]], i32* nonnull align 128 dereferenceable(4) [[B]], i32* [[A]], i64 -1, i32** null)
1657-
; IS__TUNIT____-NEXT: ret void
1654+
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@call_via_pointer_with_dead_args_internal_b
1655+
; NOT_CGSCC_NPM-SAME: (i32* [[A:%.*]], i32* nonnull align 128 dereferenceable(4) [[B:%.*]], void (i32*, i32*, i32*, i64, i32**)* nocapture nofree nonnull [[FP:%.*]])
1656+
; NOT_CGSCC_NPM-NEXT: call void @called_via_pointer_internal_2(i32* [[A]], i32* nonnull align 128 dereferenceable(4) [[B]], i32* [[A]], i64 -1, i32** null)
1657+
; NOT_CGSCC_NPM-NEXT: ret void
16581658
;
16591659
; IS__CGSCC____-LABEL: define {{[^@]+}}@call_via_pointer_with_dead_args_internal_b
16601660
; IS__CGSCC____-SAME: (i32* [[A:%.*]], i32* [[B:%.*]], void (i32*, i32*, i32*, i64, i32**)* nocapture nofree nonnull [[FP:%.*]])

0 commit comments

Comments
 (0)