This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Preserving alias analysis information
Hello,
> >this seems quite close to what TARGET_MEM_REFs are designed for. IMHO,
> >the best way would be to lower the memory references to TARGET_MEM_REFs
> >(*) just once, sometime quite late in the optimization pipeline (just after
> >loop optimizations, for example), so that high-level optimizers/alias
> >analysis see the easy to understand code, while at least the essential
> >cleanups are performed on the lower level code.
>
> but the only kind of TARGET_MEM_REFs we would really allow would be
> those with a base and no symbol, no index, no step, no offset... which
> look to me like INDIRECT_REFs!
well, if that acurately describes the capabilities of the target, yes.
This way, you will prevent optimizers from recombining the addresses
to more complex ones again.
Zdenek