Skip to content

Commit 49ffe31

Browse files
authored
[AMDGPU][LIT][NFC] Adding -mtriple for AMDGPUAnnotateUniformValues Pass tests (#156437)
It specifies the target machine as AMDGPU for AMDGPUAnnotateUniformValues pass-related test (that uses UA). Before in its absense, the UA would consider everything Uniform resulting in setting metadata incorrectly for AMDGPU. Now, after specifying the AMDGPU, the UA would be rightful sets the right metadata as the test gets commpiled for AMDGPU.
1 parent 7da91fa commit 49ffe31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/AMDGPU/store-clobbers-load.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S --amdgpu-annotate-uniform < %s | FileCheck -check-prefix=OPT %s
1+
; RUN: opt -S -mtriple=amdgcn-amd-amdhsa --amdgpu-annotate-uniform < %s | FileCheck -check-prefix=OPT %s
22

33
; "load vaddr" depends on the store, so we should not mark vaddr as amdgpu.noclobber.
44

@@ -24,7 +24,7 @@ declare i32 @llvm.amdgcn.workitem.id.x()
2424
; To check that %arrayidx0 is not marked as amdgpu.noclobber.
2525

2626
; OPT-LABEL: @atomicrmw_clobbers_load(
27-
; OPT: %arrayidx0 = getelementptr inbounds [512 x i32], ptr addrspace(3) @lds0, i32 0, i32 %idx.0, !amdgpu.uniform !0
27+
; OPT: %arrayidx0 = getelementptr inbounds [512 x i32], ptr addrspace(3) @lds0, i32 0, i32 %idx.0
2828
; OPT-NEXT: %val = atomicrmw xchg ptr addrspace(3) %arrayidx0, i32 3 seq_cst
2929

3030
define amdgpu_kernel void @atomicrmw_clobbers_load(ptr addrspace(1) %out0, ptr addrspace(1) %out1) {

0 commit comments

Comments
 (0)