[PowerPC] Modern Book-E cores support sync
authorHal Finkel <hfinkel@anl.gov>
Thu, 2 Oct 2014 22:34:22 +0000 (22:34 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 2 Oct 2014 22:34:22 +0000 (22:34 +0000)
commit626236d9bc9ee3f7dc7dc55b18ea4cb77624bf7e
treecfcb04847e35e8093fe8dcbcfc81de4608d401cf
parent2b1874cbd4faf32d73bf623d7ed88be3ad135e8f
[PowerPC] Modern Book-E cores support sync

Older Book-E cores, such as the PPC 440, support only msync (which has the same
encoding as sync 0), but not any of the other sync forms. Newer Book-E cores,
however, do support sync, and for performance reasons we should allow the use
of the more-general form.

This refactors msync use into its own feature group so that it applies by
default only to older Book-E cores (of the relevant cores, we only have
definitions for the PPC440/450 currently).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/ppc440-msync.ll