[PATCH] D66843: Change datalayout compatibility check for X86 to allow datalayouts without the new address spaces.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 11:36:49 PDT 2019


On Wed, Sep 11, 2019 at 9:23 AM Reid Kleckner via Phabricator
<reviews at reviews.llvm.org> wrote:
>
> rnk added a comment.
>
> In D66843#1666367 <https://reviews.llvm.org/D66843#1666367>, @echristo wrote:
>
> > Still really not a fan of this way. I think you can change the incoming DL in compatibility cases to add an address space when none exists on x86.
> >
> > -eric
>
>
> Is that suggestion to handle it in AutoUpgrade.cpp? My rationale for doing it this way was, if a module lacks these address spaces in data layout, it is old bitcode, and it won't use these address spaces for this purpose. But of course, it's unchecked.
>

It won't, but that means it wants the default address space anyhow and
the existing code should handle it fine.


More information about the llvm-commits mailing list