mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Another case we could do better on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5bf28a812
commit
2df992883b
@ -507,3 +507,14 @@ This theoretically may help improve twolf slightly (used in dimbox.c:142?).
|
||||
|
||||
===-------------------------------------------------------------------------===
|
||||
|
||||
int foo(int N, int ***W, int **TK, int X) {
|
||||
int t, i;
|
||||
|
||||
for (t = 0; t < N; ++t)
|
||||
for (i = 0; i < 4; ++i)
|
||||
W[t / X][i][t % X] = TK[i][t];
|
||||
|
||||
return 5;
|
||||
}
|
||||
|
||||
We generate relatively atrocious code for this loop compared to gcc.
|
Loading…
Reference in New Issue
Block a user