[llvm] [VPlan] Add VPWidenInduction recipe as common base class (NFC). (PR #120008)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 15 12:50:31 PST 2024


================
@@ -1755,13 +1756,12 @@ void VPWidenIntOrFpInductionRecipe::execute(VPTransformState &State) {
 void VPWidenIntOrFpInductionRecipe::print(raw_ostream &O, const Twine &Indent,
                                           VPSlotTracker &SlotTracker) const {
   O << Indent << "WIDEN-INDUCTION";
-  if (getTruncInst()) {
+  if (auto *TI = getTruncInst()) {
     O << "\\l\"";
-    O << " +\n" << Indent << "\"  " << VPlanIngredient(IV) << "\\l\"";
-    O << " +\n" << Indent << "\"  ";
-    getVPValue(0)->printAsOperand(O, SlotTracker);
----------------
fhahn wrote:

Modernized printing for the recipe separately in 43045051d4114f2490bf0e6b01a7969d5c27ee04

https://github.com/llvm/llvm-project/pull/120008


More information about the llvm-commits mailing list