[PATCH] D34285: [SROA] Be smarter when copying metadata to retyped loads

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 02:08:18 PDT 2017


Ah, I misunderstood and thought this was to get better optimization. Should
have more caffeine. Should be easy to get the rest landed then.

On Mon, Jun 26, 2017, 02:05 Ariel Ben-Yehuda via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> The assert failure is exactly the reason I wrote this patch. Without
> this patch, the !nonnull metadata is copied from the `%bar*` load to
> the `i64` load, which triggers the assertion.
>
> > By value do you mean "result"?
> > IE the result of the load?
>
> If that's the LLVM term, yeah.
>
> On 6/26/17, Chandler Carruth via Phabricator <reviews at reviews.llvm.org>
> wrote:
> > chandlerc added a comment.
> >
> > I landed some simpler refactorings in r306267 that should be enough to
> > implement this.
> >
> > However, I noticed that SROA actually assert fails on your test case
> without
> > this patch, and in a seemingly unrelated manner. I want to understand
> this
> > before landing your patch (or equivalent using different API). That said,
> > feel free to update your patch based on r306267 or I will when I finish
> > debugging (or if you can debug the assert, let me know).
> >
> > I definitely want to get this unblocked for Rust, but it seems pretty
> scary
> > to paper over an assert failure. Anyways, will try to keep this moving.
> >
> >
> > https://reviews.llvm.org/D34285
> >
> >
> >
> >
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170626/88a7b03b/attachment.html>


More information about the llvm-commits mailing list