[PATCH] D51817: Do not use optimized atomic libcalls for misaligned atomics.
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 7 14:28:56 PDT 2018
rsmith created this revision.
rsmith added reviewers: jyknight, t.p.northover.
Herald added a subscriber: jfb.
The optimized (__atomic_foo_<n>) libcalls assume that the atomic object
is properly aligned, so should never be called on an underaligned
object.
This addresses one of several problems identified in PR38846.
Repository:
rC Clang
https://reviews.llvm.org/D51817
Files:
lib/CodeGen/CGAtomic.cpp
test/CodeGen/atomic-ops.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51817.164517.patch
Type: text/x-patch
Size: 5890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180907/25803475/attachment.bin>
More information about the cfe-commits
mailing list