[flang] [llvm] [flang-rt] Runtime implementation of extended intrinsic function SECNDS() (PR #152021)

Peter Klausler via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 13:08:59 PDT 2025


https://github.com/klausler commented:

I think that you can replace that loop with just a single compare & swap if zero.  Only the first thread to ever execute it would succeed, and all later ones would fail and return the first thread's value.

https://github.com/llvm/llvm-project/pull/152021


More information about the llvm-commits mailing list