From 32e73f98814bb16ba8b9c505b8ac7bbe77449edf Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Thu, 16 Mar 2006 18:50:44 +0000 Subject: [PATCH] Another case we could do better on. llvm-svn: 26795 --- llvm/lib/Target/PowerPC/README.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt index 898af148e0ad..3b6c56262098 100644 --- a/llvm/lib/Target/PowerPC/README.txt +++ b/llvm/lib/Target/PowerPC/README.txt @@ -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. \ No newline at end of file