summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-12 12:09:34 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-12 12:09:34 +0000
commitb0783cccb7fecfa747f503ad1f135cf3b40b4360 (patch)
tree4f99910fd8fc3acf1ef7ad2f32137e06a1b16d7a /llvm/lib/CodeGen/MachineOperand.cpp
parent8d0efdd5db26e2d7c1354b275313629c66a7049f (diff)
downloadbcm5719-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/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud