[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
================
@@ -9243,7 +9243,7 @@ void VPInterleaveRecipe::execute(VPTransformState &State) {
void VPReductionRecipe::execute(VPTransformState &State) {
assert(!State.Instance && "Reduction being replicated.");
- Value *PrevInChain = State.get(getChainOp(), 0);
+ Value *PrevInChain = State.get(getChainOp(), VPIteration(0, 0));
----------------
ayalz wrote:
```suggestion
Value *PrevInChain = State.get(getChainOp(), 0, true /* scalar */);
```
https://github.com/llvm/llvm-project/pull/80271
More information about the llvm-commits
mailing list