This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Dec 10, 2004, at 10:36 AM, Richard Guenther wrote:
Hi!
I expected -ftree-loop-linear to exchange loops in
double foo(double *a) { int i,j; double r = 0.0; for (i=0; i<8; ++i) for (j=0; j<8; ++j) r += a[j*8+i]; return r; }
but it tells me (regardless of loop order) that "Won't transform loop. Optimal transform is the identity transform" which I cannot believe, obviously.
What's going wrong here?
First file a bug. Second the loop linearizer loves ARRAY_REF and not INDIRECT_REF
Second, it doesn't care about array-ref or indirect-ref, actually. It just uses what the data dependence info tells it.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |