summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-31 08:15:18 +0000
committerChris Lattner <sabre@nondot.org>2009-01-31 08:15:18 +0000
commit83c6a141b8fbde66da6834ceac0c7048b5f30492 (patch)
tree1fdd9e09ac41e4622a7aa982693ba57762d73b7b /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
parent19efe30264ab4cfe72bfa33b26b443c564a9728b (diff)
downloadbcm5719-llvm-83c6a141b8fbde66da6834ceac0c7048b5f30492.tar.gz
bcm5719-llvm-83c6a141b8fbde66da6834ceac0c7048b5f30492.zip
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. llvm-svn: 63479
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud