mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a1deca3cd6
commit
9f17be690e
@ -102,19 +102,3 @@ into:
|
||||
This would be a win on ppc32, but not x86 or ppc64.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Pull add through mul/shift to handle this:
|
||||
|
||||
int foo(int P[4][4], int i) {
|
||||
return P[i+2][1];
|
||||
}
|
||||
|
||||
better than this (no addi needed):
|
||||
|
||||
_foo:
|
||||
addi r2, r4, 2
|
||||
slwi r2, r2, 4
|
||||
add r2, r3, r2
|
||||
lwz r3, 4(r2)
|
||||
blr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user