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

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 10:36:48 PDT 2017


wmi created this revision.
Herald added a subscriber: sanjoy.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D37221

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/AtomicExpandPass.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/Transforms/AtomicExpand/X86/expand-unaligned-expansion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37221.112913.patch
Type: text/x-patch
Size: 7107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170828/9314d7b5/attachment.bin>


More information about the llvm-commits mailing list