Fix PR1907, a nasty miscompilation because instcombine didn't
authorChris Lattner <sabre@nondot.org>
Sun, 13 Jan 2008 20:59:02 +0000 (20:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Jan 2008 20:59:02 +0000 (20:59 +0000)
commitee2b7a4530736d311fb3e2eae551e0acdb919354
tree58a288ca2539ed7d4cc29c698174f25b992b3a76
parent1fac17f2e7dafbbe2619bbd253dd7b957052f5e0
Fix PR1907, a nasty miscompilation because instcombine didn't
realize that ne & sgt  was a signed comparison (it was only
looking at whether the left compare was signed).

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