[llvm] [VPlan] Add VPValue for VF, use it for VPWidenIntOrFpInductionRecipe. (PR #95305)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 13:45:15 PDT 2024


================
@@ -1099,6 +1109,12 @@ InstructionCost VPlan::cost(ElementCount VF, VPCostContext &Ctx) {
 void VPlan::printLiveIns(raw_ostream &O) const {
   VPSlotTracker SlotTracker(this);
 
+  if (VF.getNumUsers() > 0) {
+    O << "\nLive-in ";
+    VF.printAsOperand(O, SlotTracker);
+    O << " = VF";
+  }
+
   if (VFxUF.getNumUsers() > 0) {
----------------
fhahn wrote:

Yes, will adjust separately

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


More information about the llvm-commits mailing list