Index: llvm/trunk/lib/Target/NVPTX/NVPTXIntrinsics.td =================================================================== --- llvm/trunk/lib/Target/NVPTX/NVPTXIntrinsics.td +++ llvm/trunk/lib/Target/NVPTX/NVPTXIntrinsics.td @@ -32,6 +32,7 @@ //----------------------------------- // Synchronization Functions //----------------------------------- +let isConvergent = 1 in { def INT_CUDA_SYNCTHREADS : NVPTXInst<(outs), (ins), "bar.sync \t0;", [(int_cuda_syncthreads)]>; @@ -63,6 +64,7 @@ !strconcat("selp.u32 \t$dst, 1, 0, %p2; \n\t", !strconcat("}}", ""))))))), [(set Int32Regs:$dst, (int_nvvm_barrier0_or Int32Regs:$pred))]>; +} // isConvergent = 1 //-----------------------------------