diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-31 08:15:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-31 08:15:18 +0000 |
commit | 886ab6c49c98e50494b63df81da0abc39b0127a6 (patch) | |
tree | 6617a8c60cc647fb56fd789380f5d5a1d2f561fa /lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | |
parent | bda9dfd5ab20fbefc9b0d563e7556f7cddc247d7 (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypes.cpp')
0 files changed, 0 insertions, 0 deletions