diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-01-15 05:52:27 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-01-15 05:52:27 +0000 |
| commit | 76580f0ec39ff75c9b0411151ea459fbca7b3f0a (patch) | |
| tree | 2a0f3d06f94a6e851783960affd349b3fd95cdab /llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | |
| parent | e20dd530d03b949ea9bed781def0f79eedfaafb6 (diff) | |
| download | bcm5719-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/ExecutionEngine/ExecutionEngineBindings.cpp')
0 files changed, 0 insertions, 0 deletions

