Skip to content

Commit 9069a39

Browse files
committed
[LV] Fixup tests following 93073af
Follow up on 93073af ([LV] Move 3 functions into VPlanTransforms (NFC)) to update tests in the EXPENSIVE_CHECKS case: moving the functions and calling runPass has caused the emission of some additional remarks. In an effort to make the tests less fragile, replace CHECK-REMARKS-NEXT with CHECK-REMARKS.
1 parent 8303733 commit 9069a39

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

llvm/test/Transforms/LoopVectorize/AArch64/scalable-call.ll

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ for.end:
101101
}
102102

103103
; CHECK-REMARKS: UserVF ignored because of invalid costs.
104-
; CHECK-REMARKS-NEXT: t.c:3:10: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): load
105-
; CHECK-REMARKS-NEXT: t.c:3:20: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
106-
; CHECK-REMARKS-NEXT: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): store
104+
; CHECK-REMARKS: t.c:3:10: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): load
105+
; CHECK-REMARKS: t.c:3:20: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
106+
; CHECK-REMARKS: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): store
107107
define void @vec_sin_no_mapping(ptr noalias nocapture %dst, ptr noalias nocapture readonly %src, i64 %n) {
108108
; CHECK: @vec_sin_no_mapping
109109
; CHECK: call fast <2 x float> @llvm.sin.v2f32
@@ -127,11 +127,11 @@ for.cond.cleanup: ; preds = %for.body
127127
}
128128

129129
; CHECK-REMARKS: UserVF ignored because of invalid costs.
130-
; CHECK-REMARKS-NEXT: t.c:3:10: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): load
131-
; CHECK-REMARKS-NEXT: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): fadd
132-
; CHECK-REMARKS-NEXT: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
133-
; CHECK-REMARKS-NEXT: t.c:3:20: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
134-
; CHECK-REMARKS-NEXT: t.c:3:40: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): store
130+
; CHECK-REMARKS: t.c:3:10: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): load
131+
; CHECK-REMARKS: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): fadd
132+
; CHECK-REMARKS: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
133+
; CHECK-REMARKS: t.c:3:20: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
134+
; CHECK-REMARKS: t.c:3:40: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): store
135135
define void @vec_sin_no_mapping_ite(ptr noalias nocapture %dst, ptr noalias nocapture readonly %src, i64 %n) {
136136
; CHECK: @vec_sin_no_mapping_ite
137137
; CHECK-NOT: <vscale x
@@ -165,9 +165,9 @@ for.cond.cleanup: ; preds = %for.body
165165
}
166166

167167
; CHECK-REMARKS: UserVF ignored because of invalid costs.
168-
; CHECK-REMARKS-NEXT: t.c:3:10: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): load
169-
; CHECK-REMARKS-NEXT: t.c:3:20: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
170-
; CHECK-REMARKS-NEXT: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): store
168+
; CHECK-REMARKS: t.c:3:10: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): load
169+
; CHECK-REMARKS: t.c:3:20: Recipe with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2): call to llvm.sin
170+
; CHECK-REMARKS: t.c:3:30: Recipe with invalid costs prevented vectorization at VF=(vscale x 1): store
171171
define void @vec_sin_fixed_mapping(ptr noalias nocapture %dst, ptr noalias nocapture readonly %src, i64 %n) {
172172
; CHECK: @vec_sin_fixed_mapping
173173
; CHECK: call fast <2 x float> @llvm.sin.v2f32

llvm/test/Transforms/LoopVectorize/tail-folding-vectorization-factor-1.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; loop-vectorization is only unrolling but not vectorizing.
77

88
; CHECK-REMARKS: remark: {{.*}} interleaved loop (interleaved count: 4)
9-
; CHECK-REMARKS-NEXT: remark: {{.*}} interleaved loop (interleaved count: 4)
9+
; CHECK-REMARKS: remark: {{.*}} interleaved loop (interleaved count: 4)
1010
; CHECK-REMARKS-NOT: remark: {{.*}} vectorized loop
1111

1212
define void @VF1-VPlanExe(ptr %dst) {

0 commit comments

Comments
 (0)