now that all the pieces are in place, teach instcombine's
authorChris Lattner <sabre@nondot.org>
Sat, 31 Jan 2009 08:40:03 +0000 (08:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 Jan 2009 08:40:03 +0000 (08:40 +0000)
commitd1b5e3fad94d4a5203c0a355aa7d37c01abaca8c
tree6c9cf45f60d9f2c67525dae39f64548de1ba0eeb
parent4598c943c0bae941a96d882ed01f8dd2db4ef1e1
now that all the pieces are in place, teach instcombine's
simplifydemandedbits to simplify instructions with *multiple
uses* in contexts where it can get away with it.  This allows
it to simplify the code in multi-use-or.ll into a single 'add
double'.

This change is particularly interesting because it will cover
up for some common codegen bugs with large integers created due
to the recent SROA patch.  When working on fixing those bugs,
this should be disabled.

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