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 | 4de2c7654289bb655edfad70c18a4a1352827bd0 (patch) | |
tree | 9010fdd016cda623c73214c270914158f4e4f427 /lib/Transforms/InstCombine/InstCombineCasts.cpp | |
parent | 67920320b26cbc8c1203ee94654ac1ce1fd2af13 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCasts.cpp')
0 files changed, 0 insertions, 0 deletions