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] Use alias-oracle for memmove -> memcpy folding


On Mon, 31 Aug 2009, Richard Guenther wrote:

> 
> This changes the folding code that transforms memmove to memcpy to
> use the alias oracle to query whether the memory arguments may overlap.
> The patch also relaxes what we accept for pointers in INDIRECT_REFs
> in the oracle to allow easy use of it even from the early folders
> where we are not in gimple form.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

I failed to test ada and the patch caused some regressions there
(basically using the oracle when we're not yet in gimple is fragile
due to the FEs not setting TREE_ADDRESSABLE properly and also due
to extra weird trees popping up).  The proper fix is to move this
folding to fold_stmt only - I don't have time for this right now
so I have reverted the patch.

Richard.


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