[PATCH] D87832: [IndVars] Remove monotonic checks with unknown exit count
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 20 09:25:36 PDT 2020
fhahn added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:9252
+ // Try to prove the following set of facts:
+ // - The predicate is monotonic.
+ // - If the check does not fail on the 1st iteration:
----------------
IIUC there a reason we cannot use `isMonotonicPredicate` here is that it is not using the information from MaxIter (which is the max exit count in the case of this patch)? Would it be possible move the logic to use the max exit count of a loop into `isMonotonicPredicate`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87832/new/
https://reviews.llvm.org/D87832
More information about the llvm-commits
mailing list