There are some cases where icmp(add) can be folded into a new icmp. Handle them.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 3 Feb 2008 16:33:09 +0000 (16:33 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 3 Feb 2008 16:33:09 +0000 (16:33 +0000)
commit5be2920149a96a17d8d4e08d36466fac0d624fa4
tree7dbfdfc1285696f587247357a14794cb6c54b1e0
parent0c2c3f6e815dad8e71ae850e32855a45f9625d32
There are some cases where icmp(add) can be folded into a new icmp. Handle them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46687 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-01-29-AddICmp.ll [new file with mode: 0644]