[PATCH] Add basic support for removal of load that are fed by a store of an aggregate

Chandler Carruth chandlerc at google.com
Fri Jan 2 13:36:45 PST 2015


On Fri, Jan 2, 2015 at 1:27 PM, Björn Steinbrink <bsteinbr at gmail.com> wrote:

> If we have a simple load through a GEP that is fed by a store of an
> aggregate, we can use the GEP indices to walk the stored aggregate and
> extract the appropriate value to replace the load.
>

What's the motivation for this change?

Note that SROA replaces all stores of aggregates with scalar stores of the
components specifically so that neither it nor GVN needs to cope with
aggregate loads or stores.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150102/55700132/attachment.html>


More information about the llvm-commits mailing list