llvm-project
cf0e8611 - [VPlan] Handle canonical VPWidenIntOrFpInduction in branch-condition simplification (#153539)

Commit
30 days ago
[VPlan] Handle canonical VPWidenIntOrFpInduction in branch-condition simplification (#153539) SimplifyBranchConditionForVFAndUF only recognized canonical IVs and a few PHI recipes in the loop header. With more IV-step optimizations, the canonical widen-canonical-iv can be replaced by a canonical VPWidenIntOrFpInduction, which the pass did not handle, causing regressions (missed simplifications). This patch replaces canonical VPWidenIntOrFpInduction with a StepVector in the vector preheader since the vector loop region only executes once.
Author
Parents
Loading