[llvm] [VPlan] Replace PhiR operand of ComputeRdxResult with VPIRFlags. (PR #174026)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 13 13:24:51 PST 2026


================
@@ -8790,8 +8792,8 @@ void LoopVectorizationPlanner::addReductionResultComputation(
         PhiR->setOperand(1, Extnd->getVPSingleValue());
 
       // Update ComputeReductionResult with the truncated exiting value and
-      // extend its result.
-      FinalReductionResult->setOperand(1, Trunc);
+      // extend its result. Operand 0 provides the value to be reduced.
----------------
ayalz wrote:

Maybe clearer:
```suggestion
      // extend its result. Operand 0 provides the values to be reduced.
```

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


More information about the llvm-commits mailing list