This is an archive of the discontinued LLVM Phabricator instance.

[AtomicExpand][X86] Let atomic expand generate inline sequence for unaligned load/store of atomic primitive integer types on x86_64
AbandonedPublic

Authored by wmi on Aug 28 2017, 10:36 AM.

Details

Reviewers
jyknight
davidxl
Summary

The patch is to fix PR34347.

Now llvm generates library calls of atomic_load/store for unaligned load/store of atomic primitive integer type vars on x86_64. Since x86_64 support unaligned atomic load/store for primitive integers, this is not efficient. The patch fixes that.

To fix PR34347, change in clang is also needed. That will be included in another patch.

Diff Detail

Repository
rL LLVM

Event Timeline

wmi created this revision.Aug 28 2017, 10:36 AM
wmi abandoned this revision.Aug 30 2017, 2:00 PM