Implement shift-simplify.ll:test[45].
authorChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 20:54:51 +0000 (20:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 20:54:51 +0000 (20:54 +0000)
commit4241e4da85caf46d1f6457e99029dd37cc27be72
treeefd1bfb2406bca0aa5dd42bcb3d4840e4d286218
parenta0141b90a34da612e348e2c7af41ec571a6fd143
Implement shift-simplify.ll:test[45].

First teach instcombine that sign bit checks only demand the
sign bit, this allows simplify demanded bits to hack on
expressions better.

Second, teach instcombine that ashr is useless if only the
sign bit is demanded.

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