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

Arnaud de Grandmaison via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 23:52:58 PDT 2015


aadg added a subscriber: aadg.
aadg added a comment.

Hi Sanjoy,

I'm no scev expert, so I'm most probably missing something here: why limit ourselves to "A < B => (A+1) < (B+1)" when "A < B => (A+Cst) < (B+Cst)" also holds --- assuming there are no overflows ?

Thanks,
Arnaud


http://reviews.llvm.org/D12948





More information about the llvm-commits mailing list