Skip to content

Commit 96d6136

Browse files
author
GYT
committed
fix check-label
1 parent 5f7c8b0 commit 96d6136

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

llvm/test/Transforms/LoopVectorize/diag-disabled-vectorization-msgs.ll

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
; optimization remark when the loop vectorizer is disabled by loop metadata.
44

55
; REQUIRES: asserts
6-
; RUN: opt -passes=loop-vectorize -pass-remarks=loop-vectorize \
6+
; RUN: opt -S -passes=loop-vectorize -pass-remarks=loop-vectorize \
77
; RUN: -pass-remarks-missed=loop-vectorize \
8-
; RUN: -pass-remarks-analysis=loop-vectorize -debug -disable-output \
9-
; RUN: < %s 2>&1 | FileCheck --check-prefix=METADATA %s
10-
; METADATA-LABEL: disabled_loop_vectorization:
8+
; RUN: -pass-remarks-analysis=loop-vectorize -debug \
9+
; RUN: < %s 2>&1 | FileCheck --dump-input=always --check-prefix=METADATA %s
10+
; METADATA-LABEL: 'disabled_loop_vectorization' from <stdin>
1111
; METADATA-NOT: LV: We can vectorize this loop
1212
; METADATA-NOT: LV: Not vectorizing: loop hasDisableAllTransformsHint
1313
; METADATA-NOT: LV: Not vectorizing: VectorizeOnlyWhenForced is set
@@ -26,12 +26,12 @@
2626

2727
; Strip metadata for FORCEDONLY run, keep it for METADATA run
2828
; RUN: sed 's/,[[:space:]]*!llvm\.loop[[:space:]]*!0//' %s | \
29-
; RUN: opt -passes='loop-vectorize<vectorize-forced-only>' \
29+
; RUN: opt -S -passes='loop-vectorize<vectorize-forced-only>' \
3030
; RUN: -pass-remarks=loop-vectorize \
3131
; RUN: -pass-remarks-missed=loop-vectorize \
32-
; RUN: -pass-remarks-analysis=loop-vectorize -debug -disable-output \
33-
; RUN: 2>&1 | FileCheck --check-prefix=FORCEDONLY %s
34-
; FORCEDONLY-LABEL: disabled_loop_vectorization:
32+
; RUN: -pass-remarks-analysis=loop-vectorize -debug \
33+
; RUN: 2>&1 | FileCheck --dump-input=always --check-prefix=FORCEDONLY %s
34+
; FORCEDONLY-LABEL: 'disabled_loop_vectorization' from <stdin>
3535
; FORCEDONLY-NOT: LV: We can vectorize this loop
3636
; FORCEDONLY-NOT: LV: Not vectorizing: loop hasDisableAllTransformsHint
3737
; FORCEDONLY-NOT: LV: Not vectorizing: #pragma vectorize disable
@@ -50,7 +50,7 @@ entry:
5050
loop:
5151
%iv = phi i64 [ 0, %entry ], [ %inc, %loop ]
5252
%arrayidx = getelementptr inbounds nuw double, ptr %src, i64 %iv
53-
store double 0, ptr %arrayidx, align 8
53+
store double 0.0, ptr %arrayidx, align 8
5454
%inc = add nuw nsw i64 %iv, 1
5555
%exitcond.not = icmp eq i64 %inc, 15
5656
br i1 %exitcond.not, label %exit, label %loop, !llvm.loop !0
@@ -67,12 +67,12 @@ exit:
6767
; optimization remark when the loop vectorizer is disabled by loop metadata
6868
; that requests no loop transformations.
6969

70-
; RUN: opt -passes=loop-vectorize -pass-remarks=loop-vectorize \
70+
; RUN: opt -S -passes=loop-vectorize -pass-remarks=loop-vectorize \
7171
; RUN: -pass-remarks-missed=loop-vectorize \
72-
; RUN: -pass-remarks-analysis=loop-vectorize -debug -disable-output \
72+
; RUN: -pass-remarks-analysis=loop-vectorize -debug \
7373
; RUN: -force-vector-interleave=1 -force-vector-width=2 \
74-
; RUN: < %s 2>&1 | FileCheck %s
75-
; CHECK-LABEL: disable_nonforced:
74+
; RUN: < %s 2>&1 | FileCheck --dump-input=always %s
75+
; CHECK-LABEL: 'disable_nonforced' from <stdin>
7676
; CHECK-NOT: LV: We can vectorize this loop
7777
; CHECK-NOT: LV: Not vectorizing: #pragma vectorize disable.
7878
; CHECK-NOT: LV: Not vectorizing: VectorizeOnlyWhenForced is set

0 commit comments

Comments
 (0)