Implement review feedback, including additional transforms
authorChristopher Lamb <christopher.lamb@gmail.com>
Thu, 20 Dec 2007 07:21:11 +0000 (07:21 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Thu, 20 Dec 2007 07:21:11 +0000 (07:21 +0000)
commit103e1a311809edd162463a2dc21edad2dd7251ba
tree700216904e4273cee9a865b176690ae7a0265456
parent46f1a8797cfc9ff2a64438060deaed5e8f1f9a6b
Implement review feedback, including additional transforms

(icmp slt (sub A B) 1) -> (icmp sle A B)
icmp sgt (sub A B) -1) -> (icmp sge A B)

and add testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45256 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2007-12-19-IcmpSub.ll [new file with mode: 0644]