diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-02-29 16:42:27 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-02-29 16:42:27 +0000 |
commit | 1a5706ca1bbf4028fb01424238ae1d22f0f64ba6 (patch) | |
tree | b7564d1e5b9e850fe07f000554f7b1dbb17eae6e /llvm/lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | 4823631af475410cb7c2c47af28ed010bf956d45 (diff) | |
download | bcm5719-llvm-1a5706ca1bbf4028fb01424238ae1d22f0f64ba6.tar.gz bcm5719-llvm-1a5706ca1bbf4028fb01424238ae1d22f0f64ba6.zip |
Fix for PR26180
Corresponds to Phabricator review:
http://reviews.llvm.org/D16592
This fix includes both an update to how we handle the "generic" CPU on LE
systems as well as Anton's fix for the Fast Isel issue.
llvm-svn: 262233
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index c357c7564d7..359c2eb85b3 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp @@ -110,7 +110,7 @@ void PPCSubtarget::initializeEnvironment() { void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) { // Determine default and user specified characteristics std::string CPUName = CPU; - if (CPUName.empty()) { + if (CPUName.empty() || CPU == "generic") { // If cross-compiling with -march=ppc64le without -mcpu if (TargetTriple.getArch() == Triple::ppc64le) CPUName = "ppc64le"; |