[llvm] [VPlan] Consistently use (Part, 0) for first lane scalar values (PR #80271)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 15:52:41 PST 2024
================
@@ -407,7 +408,7 @@ Value *VPInstruction::generateInstruction(VPTransformState &State,
}
case VPInstruction::ComputeReductionResult: {
if (Part != 0)
- return State.get(this, 0);
+ return State.get(this, VPIteration(0, 0));
----------------
ayalz wrote:
```suggestion
return State.get(this, 0, true /* scalar */);
```
https://github.com/llvm/llvm-project/pull/80271
More information about the llvm-commits
mailing list