[Power] Use lwsync for non-seq_cst fences
authorRobin Morisset <morisset@google.com>
Fri, 3 Oct 2014 18:04:36 +0000 (18:04 +0000)
committerRobin Morisset <morisset@google.com>
Fri, 3 Oct 2014 18:04:36 +0000 (18:04 +0000)
commit8e2b2ae80e54525a3ada8340c7de5938a3acc405
treed28dbd7c95962ed94f9a5b7ca6219846f865640a
parentd8af735ca7ef650be22eb353290de54f32a73341
[Power] Use lwsync for non-seq_cst fences

Summary:
hwsync is only required for seq_cst fences, acquire and release one can use
the cheaper lwsync.

Test Plan: Added some cases to atomics.ll + make check-all

Reviewers: jfb, wschmidt

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5317

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.td
test/CodeGen/PowerPC/atomics-fences.ll [new file with mode: 0644]