Add some transforms of the kind X-Y>X -> 0>Y which are valid when there is no
authorDuncan Sands <baldrick@free.fr>
Fri, 18 Feb 2011 16:25:37 +0000 (16:25 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 18 Feb 2011 16:25:37 +0000 (16:25 +0000)
commit39a7de72c8b5013f32802ceacefaaf6697726c28
treed66023395fe748a22ed040eec29ed8bd4837c2ce
parent5c862575d5ce72ef06ebdea6daa6b11e1cc57305
Add some transforms of the kind X-Y>X -> 0>Y which are valid when there is no
overflow.  These subsume some existing equality transforms, so zap those.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125843 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstCombine/sub.ll