summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorKit Barton <kbarton@ca.ibm.com>2015-06-16 16:01:15 +0000
committerKit Barton <kbarton@ca.ibm.com>2015-06-16 16:01:15 +0000
commit4f79f96fd7351a0bb731fcb508f76e6ab4ae2134 (patch)
treeb9dc7c9b94cbb3e5b67d8652bca6ce19d941bed8 /llvm/lib/Target/PowerPC/PPCSubtarget.cpp
parent6fea1af01add7a54251d037c99a7d6deb1814184 (diff)
downloadbcm5719-llvm-4f79f96fd7351a0bb731fcb508f76e6ab4ae2134.tar.gz
bcm5719-llvm-4f79f96fd7351a0bb731fcb508f76e6ab4ae2134.zip
Properly handle the mftb instruction.
The mftb instruction was incorrectly marked as deprecated in the PPC Backend. Instead, it should not be treated as deprecated, but rather be implemented using the mfspr instruction. A similar patch was put into GCC last year. Details can be found at: https://sourceware.org/ml/binutils/2014-11/msg00383.html. This change will replace instances of the mftb instruction with the mfspr instruction for all CPUs except 601 and pwr3. This will also be the default behaviour. Additional details can be found in: https://llvm.org/bugs/show_bug.cgi?id=23680 Phabricator review: http://reviews.llvm.org/D10419 llvm-svn: 239827
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index a8ff4e10077..cf603fe1772 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -91,7 +91,7 @@ void PPCSubtarget::initializeEnvironment() {
IsPPC4xx = false;
IsPPC6xx = false;
IsE500 = false;
- DeprecatedMFTB = false;
+ FeatureMFTB = false;
DeprecatedDST = false;
HasLazyResolverStubs = false;
HasICBT = false;
OpenPOWER on IntegriCloud