Prevent a DAGCombine from firing where there are two uses of
authorChandler Carruth <chandlerc@gmail.com>
Thu, 5 Jan 2012 11:05:55 +0000 (11:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 5 Jan 2012 11:05:55 +0000 (11:05 +0000)
commit62dfc511524b28a9411f62e19d48120066c1e41b
treecdc0710c458931e3ea07b911144a432eb2f734d3
parent1e141a854e0ecaace5925039159daf9dd8426196
Prevent a DAGCombine from firing where there are two uses of
a combined-away node and the result of the combine isn't substantially
smaller than the input, it's just canonicalized. This is the first part
of a significant (7%) performance gain for Snappy's hot decompression
loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147604 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/shift-folding.ll