llvm-project
9a5a8731 - [VPlan] Introduce ResumePhi VPInstruction, use to create phi for FOR. (#94760)

Commit
1 year ago
[VPlan] Introduce ResumePhi VPInstruction, use to create phi for FOR. (#94760) This patch introduces a new ResumePhi VPInstruction which creates a phi in a leaf block of a VPlan. The first use is to create the phi node for fixed-order recurrence resume values in the scalar preheader. The VPInstruction takes 2 operands: 1) the incoming value from the middle-block and a default value to be used for all other incoming blocks. In follow-up changes, it will also be used to create phis for reduction and induction resume values. Depends on https://github.com/llvm/llvm-project/pull/92651 PR: https://github.com/llvm/llvm-project/pull/94760
Author
Parents
Loading