llvm-project
0d0abb35 - [VPlan] Use ResumePhi to create reduction resume phis. (#110004)

Commit
341 days ago
[VPlan] Use ResumePhi to create reduction resume phis. (#110004) Use VPInstruction::ResumePhi to create phi nodes for reduction resume values in the scalar preheader, similar to how ResumePhis are used for first-order recurrence resume values after 9a5a8731e77. This allows simplifying createAndCollectMergePhiForReduction to only collect reduction resume phis when vectorizing epilogue loops and adding extra incoming edges from the main vector loop. Updating phis for the epilogue vector loops requires special attention, because additional incoming values from the bypass blocks need to be added. PR: https://github.com/llvm/llvm-project/pull/110004
Author
Parents
Loading