OSDN Git Service

AArch64: lower "fence singlethread" to a pure compiler barrier.
authorTim Northover <tnorthover@apple.com>
Thu, 20 Apr 2017 21:57:45 +0000 (21:57 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 20 Apr 2017 21:57:45 +0000 (21:57 +0000)
commitefa8c0e73a6f4ddfc33dcf0a5f1554746a8deeb9
tree56719d4c30fca5c173f8f0d96186128d34f42806
parentff268972fc5a6b4fca8e8f808641cd7495eb36c9
AArch64: lower "fence singlethread" to a pure compiler barrier.

Single-threaded fences aren't required to provide any synchronization with
other processing elements so there's no need for a DMB. They should still be a
barrier for compiler optimizations though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
lib/Target/AArch64/AArch64InstrAtomics.td
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp