[llvm] 2f0d326 - [NFC][VPlan] Trim extra spaces in `VPDerivedIVRecipe::print` during debugging (#106041)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 06:23:08 PDT 2024
Author: Shao-Ce SUN
Date: 2024-08-26T21:23:05+08:00
New Revision: 2f0d32692e05a763c61155d5a63d2409010cf97b
URL: https://github.com/llvm/llvm-project/commit/2f0d32692e05a763c61155d5a63d2409010cf97b
DIFF: https://github.com/llvm/llvm-project/commit/2f0d32692e05a763c61155d5a63d2409010cf97b.diff
LOG: [NFC][VPlan] Trim extra spaces in `VPDerivedIVRecipe::print` during debugging (#106041)
before:
```
EMIT vp<%3> = CANONICAL-INDUCTION ir<0>, vp<%8>
vp<%4> = DERIVED-IV ir<%n> + vp<%3> * ir<-1>
vp<%5> = SCALAR-STEPS vp<%4>, ir<-1>
```
after:
```
EMIT vp<%3> = CANONICAL-INDUCTION ir<0>, vp<%8>
vp<%4> = DERIVED-IV ir<%n> + vp<%3> * ir<-1>
vp<%5> = SCALAR-STEPS vp<%4>, ir<-1>
```
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index fe1325f4163004..53b28a692059f6 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -1455,7 +1455,7 @@ void VPDerivedIVRecipe::print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const {
O << Indent;
printAsOperand(O, SlotTracker);
- O << Indent << "= DERIVED-IV ";
+ O << " = DERIVED-IV ";
getStartValue()->printAsOperand(O, SlotTracker);
O << " + ";
getOperand(1)->printAsOperand(O, SlotTracker);
More information about the llvm-commits
mailing list