llvm-project
87f88062 - [VPlan] Use vputils::findCanonicalIVIncrement in more places. NFC

Commit
6 days ago
[VPlan] Use vputils::findCanonicalIVIncrement in more places. NFC In a future patch we want to enable more scenarios with early exits and tail folding. In these scenarios the terminator will no longer be a BranchOnCount/BranchOnCond but a BranchOnTwoConds, so a bunch of canonical IV matchers break. Use vputils::findCanonicalIVIncrement instead since it searches the users of the canonical IV instead of looking at the terminator.
Author
Committer
Parents
Loading