[llvm] r233684 - [PowerPC] Remove TargetMachine CPU auto-detection
Ulrich Weigand
ulrich.weigand at de.ibm.com
Tue Mar 31 05:01:06 PDT 2015
Author: uweigand
Date: Tue Mar 31 07:01:06 2015
New Revision: 233684
URL: http://llvm.org/viewvc/llvm-project?rev=233684&view=rev
Log:
[PowerPC] Remove TargetMachine CPU auto-detection
As was done for X86 in r206094.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp?rev=233684&r1=233683&r2=233684&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp Tue Mar 31 07:01:06 2015
@@ -21,7 +21,6 @@
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Host.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetMachine.h"
#include <cstdlib>
@@ -110,11 +109,6 @@ void PPCSubtarget::initSubtargetFeatures
else
CPUName = "generic";
}
-#if (defined(__APPLE__) || defined(__linux__)) && \
- (defined(__ppc__) || defined(__powerpc__))
- if (CPUName == "generic")
- CPUName = sys::getHostCPUName();
-#endif
// Initialize scheduling itinerary for the specified CPU.
InstrItins = getInstrItineraryForCPU(CPUName);
More information about the llvm-commits
mailing list