diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-03-28 13:29:47 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-28 13:29:47 +0000 |
commit | c53ab4d77f4b3d2905cf9ad625c28ff6b1c04aff (patch) | |
tree | b2fcb51be8d19be85b7154477017f83ee096e6da /lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | f464481db0c3b5404004b510921ca454803fd1d0 (diff) |
Add the PPC64 popcntd instruction
PPC ISA 2.06 (P7, A2, etc.) has a popcntd instruction. Add this instruction and
tell TTI about it so that popcount-loop recognition will know about it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp index 18e4c07942..11b7fc2b03 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -40,6 +40,7 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU, , HasFSQRT(false) , HasSTFIWX(false) , HasISEL(false) + , HasPOPCNTD(false) , IsBookE(false) , HasLazyResolverStubs(false) , IsJITCodeModel(false) |