This is the mail archive of the gcc-patches@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 4/28/07, I wrote:
Razya, does your patch does the right thing to reorder:
SUBROUTINE SUB(A, B, N, M) DIMENSION A(N, M), B(N, M) DO I = 1, N DO J = 1, M A(I, J) = B(I, J) ENDDO ENDDO END
Currently, it doesn't vectorize because the loops are not in the right order. Note that you don't have to "reorganize the matrix [layout]" to get this right - just reorder the loops.
Isn't that what -ftree-loop-linear is for?
vect6.f:4: note: not vectorized: unhandled data-ref vect6.f:1: note: vectorized 0 loops in function.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |