summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcSubtarget.cpp
diff options
context:
space:
mode:
authorChris Dewhurst <chris.dewhurst@lero.ie>2016-10-10 08:53:06 +0000
committerChris Dewhurst <chris.dewhurst@lero.ie>2016-10-10 08:53:06 +0000
commit850131213f1cb52653f7ff092cf48a23e04bab24 (patch)
treef4d8657b3f5abf7ae3e103919c20d069e3b09236 /llvm/lib/Target/Sparc/SparcSubtarget.cpp
parent30cd7341d07a94b78864355c64103d41bdbde910 (diff)
downloadbcm5719-llvm-850131213f1cb52653f7ff092cf48a23e04bab24.tar.gz
bcm5719-llvm-850131213f1cb52653f7ff092cf48a23e04bab24.zip
This pass, fixing an erratum in some LEON 2 processors ensures that the SDIV instruction is not issued, but replaced by SDIVcc instead, which does not exhibit the error. Unit test included.
Differential Review: https://reviews.llvm.org/D24660 llvm-svn: 283727
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcSubtarget.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcSubtarget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.cpp b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
index 97d4aef3378..75ea4c7c8f5 100644
--- a/llvm/lib/Target/Sparc/SparcSubtarget.cpp
+++ b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
@@ -39,6 +39,7 @@ SparcSubtarget &SparcSubtarget::initializeSubtargetDependencies(StringRef CPU,
// Leon features
HasLeonCasa = false;
HasUmacSmac = false;
+ PerformSDIVReplace = false;
InsertNOPLoad = false;
FixFSMULD = false;
ReplaceFMULS = false;
OpenPOWER on IntegriCloud