[PATCH] D72579: Evaluate __{c11_,}atomic_is_lock_free to 0 (avoid libcall) if larger than MaxAtomicPromoteWidth
JF Bastien via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 10:16:34 PST 2020
jfb added a subscriber: jwakely.
jfb added a comment.
This changes the expression to a constant expression as well, right? You should point this out in the commit message.
The divergence with GCC is unfortunate, @jwakely do you think you'd be able to get GCC to match this behavior as well? It's technically a breaking change, but I doubt it matters in practice. It might also break code when newer architectures come in (if they have larger atomics) but again I think that's fine.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72579/new/
https://reviews.llvm.org/D72579
More information about the cfe-commits
mailing list