diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-17 21:22:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-17 21:22:06 +0000 |
commit | 402504b1ba250839102ba384be0210d248b6e3e8 (patch) | |
tree | 2191594ce2fd9fa9fa36df4453af5f43d27cd5ae /lib/CodeGen/MachineInstr.cpp | |
parent | 939274fcfd65047d516d5afff0dc5ac1817c5550 (diff) |
Vectors that are known live-in and live-out are clearly already marked in
the vrsave register for the caller. This allows us to codegen a function as:
_test_rol:
mfspr r2, 256
mr r3, r2
mtspr 256, r3
vspltisw v2, -12
vrlw v2, v2, v2
mtspr 256, r2
blr
instead of:
_test_rol:
mfspr r2, 256
oris r3, r2, 40960
mtspr 256, r3
vspltisw v0, -12
vrlw v2, v0, v0
mtspr 256, r2
blr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions