[llvm] [VPlan] Consistently use (Part, 0) for first lane scalar values (PR #80271)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 19 04:11:46 PST 2024
================
@@ -512,7 +518,14 @@ void VPInstruction::execute(VPTransformState &State) {
if (!hasResult())
continue;
assert(GeneratedValue && "generateInstruction must produce a value");
- State.set(this, GeneratedValue, Part);
+ if (GeneratedValue->getType()->isVectorTy())
+ State.set(this, GeneratedValue, Part);
+ else {
+ assert((getOpcode() == VPInstruction::ComputeReductionResult ||
----------------
fhahn wrote:
Added a note that it generates a scalar but has it's last lane accessed via the generic VPLiveOut.
https://github.com/llvm/llvm-project/pull/80271
More information about the llvm-commits
mailing list