[llvm] 271010b - [AMDGPU] Restore temporal divergence in test
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 04:12:01 PST 2023
Author: Jay Foad
Date: 2023-03-06T12:09:52Z
New Revision: 271010bf50a552809b1095c46d32c0bfd9db8169
URL: https://github.com/llvm/llvm-project/commit/271010bf50a552809b1095c46d32c0bfd9db8169
DIFF: https://github.com/llvm/llvm-project/commit/271010bf50a552809b1095c46d32c0bfd9db8169.diff
LOG: [AMDGPU] Restore temporal divergence in test
The loop in this test was supposed to have temporal divergence but this
was broken by r367221. Fix it.
Added:
Modified:
llvm/test/CodeGen/AMDGPU/divergence-at-use.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AMDGPU/divergence-at-use.ll b/llvm/test/CodeGen/AMDGPU/divergence-at-use.ll
index 201691ad968b..1771c0050217 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()
More information about the llvm-commits
mailing list