[all-commits] [llvm/llvm-project] 314576: [flang][cuda] Fix atomicCAS to return the old valu...

Zhen Wang via All-commits all-commits at lists.llvm.org
Thu Jul 9 15:45:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 314576176481027a0cb40790c43b851886ab3c55
      https://github.com/llvm/llvm-project/commit/314576176481027a0cb40790c43b851886ab3c55
  Author: Zhen Wang <zhenw at nvidia.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M flang/lib/Optimizer/Builder/CUDAIntrinsicCall.cpp
    M flang/test/Lower/CUDA/cuda-device-proc.cuf

  Log Message:
  -----------
  [flang][cuda] Fix atomicCAS to return the old value (#208558)

atomicCAS returned cmpxchg's success flag instead of the old value,
breaking spinlock idioms. Extract element 0 (bitcast back for floats).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list