diff options
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/divergence-at-use.ll | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/divergence-at-use.ll b/llvm/test/CodeGen/AMDGPU/divergence-at-use.ll index 201691a..1771c00 100644 --- a/llvm/test/CodeGen/AMDGPU/divergence-at-use.ll +++ b/llvm/test/CodeGen/AMDGPU/divergence-at-use.ll @@ -3,10 +3,11 @@ @local = addrspace(3) global i32 undef -define amdgpu_kernel void @reducible(i32 %x) { +define amdgpu_kernel void @reducible() { ; CHECK-LABEL: reducible: ; CHECK-NOT: dpp entry: + %x = call i32 @llvm.amdgcn.workitem.id.x() br label %loop loop: %i = phi i32 [ 0, %entry ], [ %i1, %loop ] @@ -18,3 +19,5 @@ exit: %old = atomicrmw add ptr addrspace(3) %gep, i32 %x acq_rel ret void } + +declare i32 @llvm.amdgcn.workitem.id.x() |
