18 lines · plain
1; RUN: opt -mtriple amdgcn-- -passes='print<uniformity>' -disable-output %s 2>&1 | FileCheck %s2 3; CHECK: DIVERGENT: %tmp = cmpxchg volatile4define amdgpu_kernel void @unreachable_loop(i32 %tidx) #0 {5entry:6 unreachable7 8unreachable_loop: ; preds = %do.body.i, %if.then119 %tmp = cmpxchg volatile ptr addrspace(1) null, i32 0, i32 0 seq_cst seq_cst10 %cmp.i = extractvalue { i32, i1 } %tmp, 111 br i1 %cmp.i, label %unreachable_loop, label %end12 13end: ; preds = %do.body.i51, %atomicAdd_g_f.exit14 unreachable15}16 17attributes #0 = { norecurse nounwind }18