llvm-project
0d736e29 - [VPlan] Add getSCEVExprForVPValue util, use to get trip count SCEV (NFC) (#94464)

Commit
1 year ago
[VPlan] Add getSCEVExprForVPValue util, use to get trip count SCEV (NFC) (#94464) Add a new getSCEVExprForVPValue utility which can be used to get a SCEV expression for a VPValue. The initial implementation only returns SCEVs for live-in IR values (by constructing a SCEV based on the live-in IR value) and VPExpandSCEVRecipe. This is enough to serve its first use, getting a SCEV for a VPlan's trip count, but will be extended in the future. It also removes createTripCountSCEV, as the new helper can be used to retrieve the SCEV from the VPlan. PR: https://github.com/llvm/llvm-project/pull/94464
Author
Parents
Loading