This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING][patch,loopiv] misaligned packed array memory access
Hi,
> * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check iv offset.
> * (loop_offset_multiple_of): New function.
fix the changelog formating.
> +/* Returns true if OFFSET is always a multiple of alignment AL
> + even if loop carried. */
> +
> +static bool
> +loop_offset_multiple_of (struct ivopts_data *data, tree offset, tree al)
instead of this, it would perhaps be simpler to just add
constant_multiple_of check for the step of the induction variable
(after it is computed in find_interesting_uses_address)?
Zdenek