diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-10-07 22:26:12 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-10-07 22:26:12 +0000 |
commit | cb90de37a720b0b00d6303b49b8df6d5ac5f34f9 (patch) | |
tree | c79217f3b3bbd097f64987255a7747a9e168ba43 /lib/Target/PowerPC/PPC64ISelSimple.cpp | |
parent | 5a181c848bc9994265ef27d3f9fc50144968f61b (diff) |
Add ori reg, reg, 0 as a move instruction. This can be generated from
loading a 32bit constant into a register whose low halfword is all zeroes.
We now omit the ori after the lis for the following C code:
int bar(int y) { return y * 0x00F0000; }
_bar:
.LBB_bar_0: ; entry
; IMPLICIT_DEF
lis r2, 15
mullw r3, r3, r2
blr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC64ISelSimple.cpp')
0 files changed, 0 insertions, 0 deletions