summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcSubtarget.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2014-01-26 06:09:59 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2014-01-26 06:09:59 +0000
commitead3b3d7a1f4ada0d7eb8cc46185fbea4a58060f (patch)
treecadae072a7745f3e4dd3103b06f83263238b01d3 /llvm/lib/Target/Sparc/SparcSubtarget.cpp
parent39f0833f47a8ed1cf372cf1bf84908bf49cfb308 (diff)
downloadbcm5719-llvm-ead3b3d7a1f4ada0d7eb8cc46185fbea4a58060f.tar.gz
bcm5719-llvm-ead3b3d7a1f4ada0d7eb8cc46185fbea4a58060f.zip
Only generate the popc instruction for SPARC CPUs that implement it.
The popc instruction is defined in the SPARCv9 instruction set architecture, but it was emulated on CPUs older than Niagara 2. llvm-svn: 200131
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcSubtarget.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcSubtarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.cpp b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
index 7032d7f3fb0..7373613eb26 100644
--- a/llvm/lib/Target/Sparc/SparcSubtarget.cpp
+++ b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
@@ -31,7 +31,8 @@ SparcSubtarget::SparcSubtarget(const std::string &TT, const std::string &CPU,
V8DeprecatedInsts(false),
IsVIS(false),
Is64Bit(is64Bit),
- HasHardQuad(false) {
+ HasHardQuad(false),
+ UsePopc(false) {
// Determine default and user specified characteristics
std::string CPUName = CPU;
OpenPOWER on IntegriCloud