[PATCH] D103431: [AMDGPU] Fix missing lowering of LDS used in global scope.

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 1 07:03:06 PDT 2021


hsmhsm added a comment.

In D103431#2790962 <https://reviews.llvm.org/D103431#2790962>, @JonChesterfield wrote:

> Is this the proposed fix for the missing lowering of the LDS in the following?
>
>   @lds = addrspace(3) global float undef, align 8
>   @gptr = addrspace(1) global i64* addrspacecast (float addrspace(3)* @lds to i64*), align 8
>   
>   @llvm.used = appending global [2 x i8*] [i8* addrspacecast (i8 addrspace(3)* bitcast (float addrspace(3)* @lds to i8 addrspace(3)*) to i8*), i8* addrspacecast (i8 addrspace(1)* bitcast (i64* addrspace(1)* @gptr to i8 addrspace(1)*) to i8*)], section "llvm.metadata"
>   
>   define void @f0() {
>     %ld = load i64*, i64* addrspace(1)* @gptr
>     ret void
>   }

yes


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103431/new/

https://reviews.llvm.org/D103431



More information about the llvm-commits mailing list