Skip to content

Commit 7476eef

Browse files
committed
[LV][NFC] Unified printing format for vector-predication intrinsics
1 parent 3b4e7c9 commit 7476eef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,9 @@ void VPWidenRecipe::print(raw_ostream &O, const Twine &Indent,
13161316

13171317
void VPWidenEVLRecipe::print(raw_ostream &O, const Twine &Indent,
13181318
VPSlotTracker &SlotTracker) const {
1319-
O << Indent << "WIDEN-VP ";
1319+
O << Indent << "WIDEN ";
13201320
printAsOperand(O, SlotTracker);
1321-
O << " = " << Instruction::getOpcodeName(getOpcode());
1321+
O << " = vp." << Instruction::getOpcodeName(getOpcode());
13221322
printFlags(O);
13231323
printOperands(O, SlotTracker);
13241324
}

llvm/test/Transforms/LoopVectorize/RISCV/vplan-vp-intrinsics.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ define void @foo(ptr noalias %a, ptr noalias %b, ptr noalias %c, i64 %N) {
3131
; IF-EVL-NEXT: CLONE ir<[[GEP2:%.+]]> = getelementptr inbounds ir<%c>, vp<[[ST]]>
3232
; IF-EVL-NEXT: vp<[[PTR2:%[0-9]+]]> = vector-pointer ir<[[GEP2]]>
3333
; IF-EVL-NEXT: WIDEN ir<[[LD2:%.+]]> = vp.load vp<[[PTR2]]>, vp<[[EVL]]>
34-
; IF-EVL-NEXT: WIDEN-VP ir<[[ADD:%.+]]> = add nsw ir<[[LD2]]>, ir<[[LD1]]>, vp<[[EVL]]>
34+
; IF-EVL-NEXT: WIDEN ir<[[ADD:%.+]]> = vp.add nsw ir<[[LD2]]>, ir<[[LD1]]>, vp<[[EVL]]>
3535
; IF-EVL-NEXT: CLONE ir<[[GEP3:%.+]]> = getelementptr inbounds ir<%a>, vp<[[ST]]>
3636
; IF-EVL-NEXT: vp<[[PTR3:%[0-9]+]]> = vector-pointer ir<[[GEP3]]>
3737
; IF-EVL-NEXT: WIDEN vp.store vp<[[PTR3]]>, ir<[[ADD]]>, vp<[[EVL]]>

0 commit comments

Comments
 (0)