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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 04:57:54 PDT 2025


================
@@ -333,6 +333,9 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
     LastLane = 0;
   }
 
+  assert(IsSingleScalar && "must be a single-scalar at this point");
+  // We need to construct the vector value for a single-scalar value by
+  // broadcasting the scalar to all lanes.
   auto *LastInst = cast<Instruction>(get(Def, LastLane));
----------------
fhahn wrote:

done thanks

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


More information about the llvm-commits mailing list