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: [PATCH] Fix the one entry mem{{,p}cpy,move,set} optimization aliasing issues (PR middle-end/29272)


Jakub Jelinek <jakub@redhat.com> writes:

> I think we could optimize the latter if we arranged for the store (and/or
> read) to be done in alias set 0, but am not sure how exactly to arrange it
> now.

How about: create a new temporary pointer variable, initialize it to
the original pointer, and put that variable in alias set 0 by
assigning to DECL_POINTER_ALIAS_SET.

That should suffice for the TBAA alias checks done at the RTL level.
The tree level doesn't check the alias set, but presumably we can do
something similar if necessary.

Ian


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