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

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 13:11:44 PDT 2024


================
@@ -1551,6 +1568,8 @@ void VPSlotTracker::assignName(const VPValue *V) {
 }
 
 void VPSlotTracker::assignNames(const VPlan &Plan) {
+  if (Plan.VF.getNumUsers() > 0)
+    assignName(&Plan.VF);
   if (Plan.VFxUF.getNumUsers() > 0)
----------------
ayalz wrote:

Should this condition be an assert?

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


More information about the llvm-commits mailing list