SCEV has multiple occurences of code when we need to prove some predicate on
every iteration of a loop and do it with invocations of couple isLoopEntryGuardedByCond,
isLoopBackedgeGuardedByCond. This patch factors out these two calls into a separate
method. It is a preparation step to extend this logic: it is not the only way how we can prove
such conditions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/Analysis/ScalarEvolution.h | ||
---|---|---|
838 ↗ | (On Diff #134571) | How about calling this isKnownViaInduction? |
include/llvm/Analysis/ScalarEvolution.h | ||
---|---|---|
838 ↗ | (On Diff #134571) | You are right, current implementation only proves via induction, but I plan a follow-up change https://reviews.llvm.org/D43375 which proves via monotonicity and not induction. So let's keep it as is. |