[llvm] [VPlan] Explicitly replicate VPInstructions by VF. (PR #155102)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 1 14:48:30 PDT 2025


================
@@ -463,15 +463,15 @@ void VPlanTransforms::unrollByUF(VPlan &Plan, unsigned UF) {
   VPlanTransforms::removeDeadRecipes(Plan);
 }
 
-/// Create a single-scalar clone of \p RepR for lane \p Lane. Use \p
-/// Def2LaneDefs to look up scalar definitions for operands of \RepR.
-static VPReplicateRecipe *
+/// Create a single-scalar clone of \p DefR for lane \p Lane. Use \p
----------------
ayalz wrote:

Worth documenting and/or asserting that DefR is expected to be either a replicating recipe or a VPInstruction.

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


More information about the llvm-commits mailing list