diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2017-12-12 12:09:34 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2017-12-12 12:09:34 +0000 |
commit | b0783cccb7fecfa747f503ad1f135cf3b40b4360 (patch) | |
tree | 4f99910fd8fc3acf1ef7ad2f32137e06a1b16d7a /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 8d0efdd5db26e2d7c1354b275313629c66a7049f (diff) | |
download | bcm5719-llvm-b0783cccb7fecfa747f503ad1f135cf3b40b4360.tar.gz bcm5719-llvm-b0783cccb7fecfa747f503ad1f135cf3b40b4360.zip |
[PowerPC] Follow-up to r318436 to get the missed CSE opportunities
The last of the three patches that https://reviews.llvm.org/D40348 was
broken up into.
Canonicalize the materialization of constants so that they are more likely
to be CSE'd regardless of the bit-width of the use. If a constant can be
materialized using PPC::LI, materialize it the same way always.
For example:
li 4, -1
li 4, 255
li 4, 65535
are equivalent if the uses only use the low byte. Canonicalize it to the
first form.
Differential Revision: https://reviews.llvm.org/D40348
llvm-svn: 320473
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions