OSDN Git Service

Add optimization bisect support to an optional Mips pass
authorAndrew Kaylor <andrew.kaylor@intel.com>
Mon, 26 Sep 2016 19:05:37 +0000 (19:05 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Mon, 26 Sep 2016 19:05:37 +0000 (19:05 +0000)
Differential Revision: https://reviews.llvm.org/D19513

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsOptimizePICCall.cpp

index 7c940ee..16c8d12 100644 (file)
@@ -174,6 +174,9 @@ void MBBInfo::postVisit() {
 
 // OptimizePICCall methods.
 bool OptimizePICCall::runOnMachineFunction(MachineFunction &F) {
+  if (skipFunction(*F.getFunction()))
+    return false;
+
   if (static_cast<const MipsSubtarget &>(F.getSubtarget()).inMips16Mode())
     return false;