[PATCH] D24448: [atomics] New warning -Watomic-libcall when atomic operation expands to a library call
Joerg Sonnenberger via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 13 10:38:59 PDT 2016
joerg added a subscriber: joerg.
joerg added a comment.
While I agree with the general sentiment, the check doesn't work at all. For example, ARMv4 always has to use libcalls. It's not even true that libcalls are slow, i.e. on true non-parallel architectures, the libcall can be as simple as a restartable atomic sequence and is almost cost free beyond the function call overhead.
https://reviews.llvm.org/D24448
More information about the cfe-commits
mailing list