summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-15 05:52:27 +0000
committerChris Lattner <sabre@nondot.org>2011-01-15 05:52:27 +0000
commit76580f0ec39ff75c9b0411151ea459fbca7b3f0a (patch)
tree2a0f3d06f94a6e851783960affd349b3fd95cdab /llvm/lib
parente20dd530d03b949ea9bed781def0f79eedfaafb6 (diff)
downloadbcm5719-llvm-76580f0ec39ff75c9b0411151ea459fbca7b3f0a.tar.gz
bcm5719-llvm-76580f0ec39ff75c9b0411151ea459fbca7b3f0a.zip
Fix m_Not and m_Neg to not match random ConstantInt's. Before
these would try hard to match constants by inverting the bits and recursively matching. There are two problems with this: 1) some patterns would match when we didn't want them to (theoretical) 2) this is insanely expensive to do, and most often pointless. This was apparently useful in just 2 instcombine cases, which I added code to handle explicitly. This change speeds up 'opt' time on 176.gcc by 1% and produces bitwise identical code. llvm-svn: 123518
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud