[PATCH] D42835: [SCEV] Make isLoopEntryGuardedByCond a bit smarter

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 00:39:40 PST 2018


mkazantsev created this revision.
mkazantsev added reviewers: sanjoy, jbhateja, reames.

Sometimes `isLoopEntryGuardedByCond` cannot prove predicate `a > b` directly.
But it is a common situation when `a >= b` is known from ranges and `a != b` is
known from a dominating condition. Thia patch teaches SCEV to sum these facts
together and prove strict comparison via non-strict one.


https://reviews.llvm.org/D42835

Files:
  lib/Analysis/ScalarEvolution.cpp
  test/Transforms/IRCE/decrementing-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42835.132544.patch
Type: text/x-patch
Size: 4591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180202/0273e133/attachment.bin>


More information about the llvm-commits mailing list