[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 15:24:29 PDT 2024


================
@@ -931,6 +938,10 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
   // FIXME: Model VF * UF computation completely in VPlan.
   VFxUF.setUnderlyingValue(
       createStepForVF(Builder, TripCountV->getType(), State.VF, State.UF));
+  if (VF.getNumUsers() > 0) {
+    VF.setUnderlyingValue(
+        getRuntimeVF(Builder, TripCountV->getType(), State.VF));
+  }
----------------
ayalz wrote:

nit: seems slightly more logical to take care of VF before VFxUF. Are the {} needed?

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


More information about the llvm-commits mailing list