================ @@ -1677,7 +1676,8 @@ being treated as convergent when it's safe. __device__ int example(void) { float x; - [[clang::noconvergent]] x = bar(x); + [[clang::noconvergent]] x = bar(x); // no effect on convergence + [[clang::noconvergent]] { asm volatile ("nop"); } // the asm call is non-convergent } ---------------- arsenm wrote:
Maybe should have an example of an undefined usage https://github.com/llvm/llvm-project/pull/132701 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits