[PATCH] D26880: [ThinLTO] Fix crash: transitively referenced global shouldn't be promoted

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 11:33:15 PST 2016


tejohnson added a comment.

In https://reviews.llvm.org/D26880#601530, @mehdi_amini wrote:

> In https://reviews.llvm.org/D26880#601521, @tejohnson wrote:
>
> > In https://reviews.llvm.org/D26880#601477, @mehdi_amini wrote:
> >
> > >
> >
> >
> > I normally would agree, except that this is an optimization that has been in for awhile, and maintaining it has a simple fix (the patch I sent last night should do it), until we have the longer term enhancement in.
>
>
> Right, but that's two separate discussions IMO: 1) the correctness fix, 2) adding a `temporary` and `well scoped` optimization patch waiting for a better solution (and a test-case will be needed).


Not sure I understand - the "temporary" optimization patch is already in (and works in many cases, just not when the reference from the const global init to the referenced local that needs promotion is through some levels of indirection) - this change would necessitate removing that.


https://reviews.llvm.org/D26880





More information about the llvm-commits mailing list