make some fairly meaty internal changes to how SimplifyDemandedBits works.
authorChris Lattner <sabre@nondot.org>
Sat, 31 Jan 2009 08:15:18 +0000 (08:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 Jan 2009 08:15:18 +0000 (08:15 +0000)
commit886ab6c49c98e50494b63df81da0abc39b0127a6
tree6617a8c60cc647fb56fd789380f5d5a1d2f561fa
parentbda9dfd5ab20fbefc9b0d563e7556f7cddc247d7
make some fairly meaty internal changes to how SimplifyDemandedBits works.
Now, if it detects that "V" is the same as some other value,
SimplifyDemandedBits returns the new value instead of RAUW'ing it immediately.
This has two benefits:
1) simpler code in the recursive SimplifyDemandedBits routine.
2) it allows future fun stuff in instcombine where an operation has multiple
   uses and can be simplified in one context, but not all.

#2 isn't implemented yet, this patch should have no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp