[llvm] r218817 - Now that the optimization level is adjusting the feature string

Eric Christopher echristo at gmail.com
Wed Oct 1 14:05:35 PDT 2014


Author: echristo
Date: Wed Oct  1 16:05:35 2014
New Revision: 218817

URL: http://llvm.org/viewvc/llvm-project?rev=218817&view=rev
Log:
Now that the optimization level is adjusting the feature string
before we hit the subtarget, remove the constructor parameter.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
    llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
    llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp?rev=218817&r1=218816&r2=218817&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp Wed Oct  1 16:05:35 2014
@@ -74,13 +74,12 @@ PPCSubtarget &PPCSubtarget::initializeSu
 }
 
 PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU,
-                           const std::string &FS, PPCTargetMachine &TM,
-                           CodeGenOpt::Level OptLevel)
+                           const std::string &FS, PPCTargetMachine &TM)
     : PPCGenSubtargetInfo(TT, CPU, FS), TargetTriple(TT),
       DL(getDataLayoutString(TargetTriple)),
       IsPPC64(TargetTriple.getArch() == Triple::ppc64 ||
               TargetTriple.getArch() == Triple::ppc64le),
-      OptLevel(OptLevel), TargetABI(PPC_ABI_UNKNOWN),
+      TargetABI(PPC_ABI_UNKNOWN),
       FrameLowering(initializeSubtargetDependencies(CPU, FS)), InstrInfo(*this),
       TLInfo(TM), TSInfo(&DL) {}
 

Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h?rev=218817&r1=218816&r2=218817&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h Wed Oct  1 16:05:35 2014
@@ -111,9 +111,6 @@ protected:
   bool HasLazyResolverStubs;
   bool IsLittleEndian;
 
-  /// OptLevel - What default optimization level we're emitting code for.
-  CodeGenOpt::Level OptLevel;
-
   enum {
     PPC_ABI_UNKNOWN,
     PPC_ABI_ELFv1,
@@ -130,8 +127,7 @@ public:
   /// of the specified triple.
   ///
   PPCSubtarget(const std::string &TT, const std::string &CPU,
-               const std::string &FS, PPCTargetMachine &TM,
-               CodeGenOpt::Level OptLevel);
+               const std::string &FS, PPCTargetMachine &TM);
 
   /// ParseSubtargetFeatures - Parses features string setting specified
   /// subtarget options.  Definition of function is auto generated by tblgen.

Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp?rev=218817&r1=218816&r2=218817&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp Wed Oct  1 16:05:35 2014
@@ -69,7 +69,7 @@ PPCTargetMachine::PPCTargetMachine(const
                                    CodeGenOpt::Level OL)
     : LLVMTargetMachine(T, TT, CPU, computeFSAdditions(FS, OL, TT), Options, RM,
                         CM, OL),
-      Subtarget(TT, CPU, TargetFS, *this, OL) {
+      Subtarget(TT, CPU, TargetFS, *this) {
   initAsmInfo();
 }
 





More information about the llvm-commits mailing list