[clang] [llvm] [NVPTX] Revamp NVVMIntrRange pass (PR #94422)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 08:19:05 PDT 2024
================
@@ -6,21 +6,21 @@
__attribute__((global))
void kernel(int *out) {
int i = 0;
- out[i++] = threadIdx.x; // CHECK: call noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x()
- out[i++] = threadIdx.y; // CHECK: call noundef i32 @llvm.nvvm.read.ptx.sreg.tid.y()
- out[i++] = threadIdx.z; // CHECK: call noundef i32 @llvm.nvvm.read.ptx.sreg.tid.z()
+ out[i++] = threadIdx.x; // CHECK: call noundef {{.*}} i32 @llvm.nvvm.read.ptx.sreg.tid.x()
----------------
jayfoad wrote:
I see now that it fails (deterministically) if the NVPTX target is not being built.
https://github.com/llvm/llvm-project/pull/94422
More information about the llvm-commits
mailing list