[llvm] [VPlan] Introduce ComputeReductionResult VPInstruction opcode. (PR #70253)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 24 13:35:08 PST 2023
================
@@ -10203,8 +10092,9 @@ bool LoopVectorizePass::processLoop(Loop *L) {
Value *ResumeV = nullptr;
// TODO: Move setting of resume values to prepareToExecute.
if (auto *ReductionPhi = dyn_cast<VPReductionPHIRecipe>(&R)) {
- ResumeV = MainILV.getReductionResumeValue(
- ReductionPhi->getRecurrenceDescriptor());
+ ResumeV = ReductionResumeValues
+ .find(&ReductionPhi->getRecurrenceDescriptor())
+ ->second;
----------------
ayalz wrote:
Ah, sure, same as `ExpandedSCEVs.find(ExpandR->getSCEV())->second);`
https://github.com/llvm/llvm-project/pull/70253
More information about the llvm-commits
mailing list