[llvm] [VPlan] Explicitly replicate VPInstructions by VF. (PR #155102)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 1 14:48:28 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));
----------------
ayalz wrote:
nit: better sink the definition of `LastInst` so that all comments appear together.
https://github.com/llvm/llvm-project/pull/155102
More information about the llvm-commits
mailing list