[llvm] r233540 - [SystemZ] Remove TargetMachine CPU auto-detection
Ulrich Weigand
ulrich.weigand at de.ibm.com
Mon Mar 30 06:46:25 PDT 2015
Author: uweigand
Date: Mon Mar 30 08:46:25 2015
New Revision: 233540
URL: http://llvm.org/viewvc/llvm-project?rev=233540&view=rev
Log:
[SystemZ] Remove TargetMachine CPU auto-detection
As was done for X86 in r206094.
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZSubtarget.cpp
Modified: llvm/trunk/lib/Target/SystemZ/SystemZSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZSubtarget.cpp?rev=233540&r1=233539&r2=233540&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZSubtarget.cpp Mon Mar 30 08:46:25 2015
@@ -10,7 +10,6 @@
#include "SystemZSubtarget.h"
#include "MCTargetDesc/SystemZMCTargetDesc.h"
#include "llvm/IR/GlobalValue.h"
-#include "llvm/Support/Host.h"
using namespace llvm;
@@ -28,10 +27,6 @@ SystemZSubtarget::initializeSubtargetDep
std::string CPUName = CPU;
if (CPUName.empty())
CPUName = "generic";
-#if defined(__linux__) && defined(__s390x__)
- if (CPUName == "generic")
- CPUName = sys::getHostCPUName();
-#endif
// Parse features string.
ParseSubtargetFeatures(CPUName, FS);
return *this;
More information about the llvm-commits
mailing list