1 ; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
5 ; LDS global @small_lds is used within non-kernel function @f0, and @f0 is reachable
6 ; from kernel @k0, but since @small_lds too small for pointer replacement, pointer
7 ; replacement does not take place.
10 ; CHECK: @small_lds = addrspace(3) global i8 undef, align 1
11 @small_lds = addrspace(3) global i8 undef, align 1
13 ; CHECK-NOT: @small_lds.ptr
17 ; CHECK: store i8 1, i8 addrspace(3)* @small_lds, align 1
20 store i8 1, i8 addrspace(3)* @small_lds, align 1
24 define amdgpu_kernel void @k0() {
26 ; CHECK: call void @f0()