https://bugs.llvm.org/show_bug.cgi?id=25335
Nikita Kniazev <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Product|new-bugs |clang
CC| |[email protected],
| |[email protected],
| |[email protected]
Status|NEW |RESOLVED
Assignee|[email protected] |unassignedclangbugs@nondot.
| |org
Summary|atomics are 20x slower |Clang always emits a
|compared to gcc if |library call for unaligned
|atomic<T>'s T is a packed |atomics
|struct |
Component|new bugs |Frontend
Resolution|--- |DUPLICATE
--- Comment #2 from Nikita Kniazev <[email protected]> ---
Clang always emits a library call for unaligned atomics by design
https://github.com/llvm/llvm-project/blob/32e2729e337640e547bb6e8bd3dbe43ac36daa81/clang/lib/CodeGen/CGAtomic.cpp#L809-L810
https://godbolt.org/z/Gz4srWKqT
I am marking this as a duplicate of bug 38846 which has a discussion.
*** This bug has been marked as a duplicate of bug 38846 ***
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs