Fix folding of icmp's of i1 where the comparison is signed. The code
authorChris Lattner <sabre@nondot.org>
Fri, 11 Jul 2008 04:20:58 +0000 (04:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Jul 2008 04:20:58 +0000 (04:20 +0000)
commit85b5eb050572f787331cc6af573b7f72bd174d79
tree298fabb64846804129505d59c99d95c1f6205c5d
parentf299184565f5f0ff9e3bbb94dad184fd5a690c2c
Fix folding of icmp's of i1 where the comparison is signed.  The code
was using the algorithm for folding unsigned comparisons which is
completely wrong.  This has been broken since the signless types change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53444 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-07-10-CastSextBool.ll