Allow arbitrary strides, and make sure we return the correct result when the backedge-taken count is zero.
Inspired by D104140.
Paths
| Differential D106197
[ScalarEvolution] Refine computeMaxBECountForLT to be accurate in more cases. ClosedPublic Authored by efriedma on Jul 16 2021, 4:26 PM.
Details Summary Allow arbitrary strides, and make sure we return the correct result when the backedge-taken count is zero. Inspired by D104140.
Diff Detail
Event TimelineComment Actions LGTM w/minor comments.
This revision is now accepted and ready to land.Jul 19 2021, 2:54 PM
This revision was landed with ongoing or failed builds.Jul 19 2021, 3:43 PM Closed by commit rGde3ea51be436: [ScalarEvolution] Refine computeMaxBECountForLT to be accurate in more cases. (authored by efriedma). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 359944 llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/max-trip-count.ll
|
This is harmless, but I believe we've already established this by the time this method is invoked.