This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Identifying a block copy
On 10/9/07, Daniel Berlin <dberlin@dberlin.org> wrote:
> Yes
> we do not create subvars for non-named memory locations. IE random
> pointer dereferences.
>
> This is mainly because it would require a lot of time and memory in
> the compiler.
>
> It was done because most optimizers rely solely on vdef/vuses, instead
> of further disambiguating the memory dependence chains.
ok, makes sense.
> In any case, it's not clear why you care about subvars at all here.
> If you want to identify block copies, simply look for assignments
> between AGGREGATE_TYPE_P trees.
Aha, this would be neater.
Thanks for pointing me in the right direction.
cheers!
Pranav