Add several more icmp simplifications. Transform signed comparisons
authorDan Gohman <gohman@apple.com>
Sat, 25 Apr 2009 17:12:48 +0000 (17:12 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 25 Apr 2009 17:12:48 +0000 (17:12 +0000)
commit1c8491ecc768c410a552bc3441e456fedc2736ff
tree774f979e8a63d1f8a09f6af959514b073082f208
parent4128700ab11d0db62e5ba7ed8a8fc301c7aaa8b1
Add several more icmp simplifications. Transform signed comparisons
into unsigned ones when the operands are known to have the same
sign bit value.

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