Skip to content

Commit a5a1612

Browse files
committed
[VPlan] Consistently use DEBUG_TYPE loop-vectorize.
This ensures debug messages in VPlan.cpp are included in the commonly used -debug-only=loop-vectorize.
1 parent 27bf45a commit a5a1612

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static cl::opt<bool> PrintVPlansInDotFormat(
5858
"vplan-print-in-dot-format", cl::Hidden,
5959
cl::desc("Use dot format instead of plain text when dumping VPlans"));
6060

61-
#define DEBUG_TYPE "vplan"
61+
#define DEBUG_TYPE "loop-vectorize"
6262

6363
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
6464
raw_ostream &llvm::operator<<(raw_ostream &OS, const VPValue &V) {

llvm/test/Transforms/LoopVectorize/RISCV/riscv-vector-reverse.ll

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
21
; This is the loop in c++ being vectorize in this file with
32
;vector.reverse
43
; #pragma clang loop vectorize_width(4, scalable)
@@ -195,12 +194,7 @@ define void @vector_reverse_i64(ptr nocapture noundef writeonly %A, ptr nocaptur
195194
; CHECK: IR %indvars.iv.next = add nsw i64 %indvars.iv, -1
196195
; CHECK-NEXT: No successors
197196
; CHECK-NEXT: }
198-
; CHECK-NEXT: LV: Loop does not require scalar epilogue
199-
; CHECK-NEXT: LV: Loop does not require scalar epilogue
200-
; CHECK-NEXT: LV: Interleaving disabled by the pass manager
201-
; CHECK-NEXT: LV: Loop does not require scalar epilogue
202-
; CHECK-NEXT: LV: Vectorizing: innermost loop.
203-
; CHECK-EMPTY:
197+
; CHECK: LV: Loop does not require scalar epilogue
204198
;
205199
entry:
206200
%cmp7 = icmp sgt i32 %n, 0
@@ -414,11 +408,7 @@ define void @vector_reverse_f32(ptr nocapture noundef writeonly %A, ptr nocaptur
414408
; CHECK: IR %indvars.iv.next = add nsw i64 %indvars.iv, -1
415409
; CHECK-NEXT: No successors
416410
; CHECK-NEXT: }
417-
; CHECK-NEXT: LV: Loop does not require scalar epilogue
418-
; CHECK-NEXT: LV: Loop does not require scalar epilogue
419-
; CHECK-NEXT: LV: Interleaving disabled by the pass manager
420-
; CHECK-NEXT: LV: Loop does not require scalar epilogue
421-
; CHECK-NEXT: LV: Vectorizing: innermost loop.
411+
; CHECK: LV: Loop does not require scalar epilogue
422412
;
423413
entry:
424414
%cmp7 = icmp sgt i32 %n, 0

0 commit comments

Comments
 (0)