[PATCH] D24517: GVN-hoist: fix store past load dependence analysis (PR30216)

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 09:40:52 PDT 2016


On Tue, Sep 20, 2016 at 11:30 AM, Sebastian Pop <sebpop at gmail.com> wrote:

> sebpop added a comment.
>
> On Thu, Sep 15, 2016 at 11:11 AM, Daniel Berlin <dberlin at dberlin.org>
> wrote:
>
> > Sadly, I think this will fail when the use-opt limit is hit.
>
>
> What about committing the patch that I already sent:
>
> > The current patch visits all loads on the path from the store to
>
> >  be hoisted to the hoisting position and uses the alias analysis
>
> >  to ask whether the store may alias the load.
>
>
> I think the patch is already quite efficient in terms of compile time
> because we limit the hoist distance to avoid register pressure issues.
> Because the number of instructions on the path is bounded, we
> will also have the bounds on the number of alias questions asked.
>

I'm fine with this for the second, until we have time to see if we really
want to try to expose something like instructionClobbersQuery or do
something more structured around store hoisting.

We know we won't have this problem with load hoisting or store sinking, so
...


>
> Danny, is it okay to commit the patch as it is?
>

I'm going to review it quickly to make sure it has no obvious algorithmic
issues.


>
>
> https://reviews.llvm.org/D24517
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160920/c2545f18/attachment.html>


More information about the llvm-commits mailing list