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]

Re: [PING][patch,loopiv] misaligned packed array memory access


Hi,

> ok, I see now what you meant, just that we also need to pass the 
> computed offset:
> 
>     val1 = fold_build2 (MULT_EXPR, type, step, toffset);

this does not seem to be necessary (step is the step of the
address of the reference in bytes, no need to multiply it by anything).

>     val = fold_build2 (PLUS_EXPR, base_type, base, val1);

I am not sure what you mean by this?  As far as I understand the
problem, we need to check that

1) the address is aligned in the first iteration -- which we do now, and
2) the step is a multiple of the alignment

Zdenek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]