Implement shift-simplify.ll:test3, turning:
authorChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 20:42:37 +0000 (20:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 20:42:37 +0000 (20:42 +0000)
commita0141b90a34da612e348e2c7af41ec571a6fd143
tree231f1bc421b1f0dd0f414fece8bba7e9015926da
parent28753f8df2921fa9e9d60717c2078c826ea82bb4
Implement shift-simplify.ll:test3, turning:
(X << 31) <s 0  --> (X&1) != 0

This happens dozens of times in the CFE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/shift-simplify.ll