Teach instsimplify that X+Y>=X+Z is the same as Y>=Z if neither side overflows,
authorDuncan Sands <baldrick@free.fr>
Sun, 13 Feb 2011 17:15:40 +0000 (17:15 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 13 Feb 2011 17:15:40 +0000 (17:15 +0000)
commit52fb846578714d14bbde9b28884a6a8729217677
treef4d88f87e540573a6f5144fdeb4f12ee021551b9
parentd239e5af64a7d4b0e6dcf7bc1cabefdaece72268
Teach instsimplify that X+Y>=X+Z is the same as Y>=Z if neither side overflows,
plus some variations of this.  According to my auto-simplifier this occurs a lot
but usually in combination with max/min idioms.  Because max/min aren't handled
yet this unfortunately doesn't have much effect in the testsuite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125462 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/2011-01-18-Compare.ll [deleted file]
test/Transforms/InstSimplify/compare.ll [new file with mode: 0644]