[PATCH] D12948: [SCEV] Teach SCEV that A < B => (A+K) < (B+K) on no overflow.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 17:16:52 PDT 2015


sanjoy updated this revision to Diff 35576.
sanjoy marked 3 inline comments as done.
sanjoy added a comment.

- Address Hal's review.
- Generalize the transform a little bit -- A s< B => A + C s< B + C if B s< INT_MIN - C even if C is negative.  Add a test case for the same.


http://reviews.llvm.org/D12948

Files:
  include/llvm/Analysis/ScalarEvolution.h
  lib/Analysis/ScalarEvolution.cpp
  test/Transforms/IndVarSimplify/eliminate-comparison.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12948.35576.patch
Type: text/x-patch
Size: 10452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150924/344b0a82/attachment.bin>


More information about the llvm-commits mailing list