[all-commits] [llvm/llvm-project] b8f4f3: [libc] avoid cmpxchg on the fastpath of callonce (...
Schrodinger ZHU Yifan via All-commits
all-commits at lists.llvm.org
Fri May 10 08:55:23 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b8f4f39d3d43d348e31fc5709b72e1f51392e52d
https://github.com/llvm/llvm-project/commit/b8f4f39d3d43d348e31fc5709b72e1f51392e52d
Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: 2024-05-10 (Fri, 10 May 2024)
Changed paths:
M libc/src/__support/threads/linux/callonce.cpp
Log Message:
-----------
[libc] avoid cmpxchg on the fastpath of callonce (#91748)
Avoid `cmpxchg` operation if the function has already been called.
The destination operand of `cmpxchg` may receive a write cycle without
regard to the result of the comparison
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