[PATCH] D26036: [mips] Always run the MipsOptimizePICCall pass.

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 08:21:03 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL285814: [mips] Always run the MipsOptimizePICCall pass. (authored by vkalintiris).

Changed prior to commit:
  https://reviews.llvm.org/D26036?vs=76053&id=76711#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26036

Files:
  llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp


Index: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
@@ -208,7 +208,6 @@
 
   void addIRPasses() override;
   bool addInstSelector() override;
-  void addMachineSSAOptimization() override;
   void addPreEmitPass() override;
 
   void addPreRegAlloc() override;
@@ -237,14 +236,8 @@
   return false;
 }
 
-void MipsPassConfig::addMachineSSAOptimization() {
-  addPass(createMipsOptimizePICCallPass(getMipsTargetMachine()));
-  TargetPassConfig::addMachineSSAOptimization();
-}
-
 void MipsPassConfig::addPreRegAlloc() {
-  if (getOptLevel() == CodeGenOpt::None)
-    addPass(createMipsOptimizePICCallPass(getMipsTargetMachine()));
+  addPass(createMipsOptimizePICCallPass(getMipsTargetMachine()));
 }
 
 TargetIRAnalysis MipsTargetMachine::getTargetIRAnalysis() {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26036.76711.patch
Type: text/x-patch
Size: 940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161102/0b17a3ef/attachment.bin>


More information about the llvm-commits mailing list