ARM: relax the atomic release barrier to "dmb ishst"
authorTim Northover <tnorthover@apple.com>
Mon, 1 Jul 2013 14:48:48 +0000 (14:48 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 1 Jul 2013 14:48:48 +0000 (14:48 +0000)
commitd59fc0af0a3ebd13c7004511e64e3233dfe87b17
tree1cc4dbfa52c9735cb04654858ebc786c87a15509
parent728af3d574895dd9e4bb5c418c7398297c4f39fe
ARM: relax the atomic release barrier to "dmb ishst"

I believe the full "dmb ish" barrier is not required to guarantee release
semantics for atomic operations. The weaker "dmb ishst" prevents previous
operations being reordered with a store executed afterwards, which is enough.

A key point to note (fortunately already correct) is that this barrier alone is
*insufficient* for sequential consistency, no matter how liberally placed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185339 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/atomic-64bit.ll
test/CodeGen/ARM/atomic-load-store.ll