Index: llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp =================================================================== --- llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp +++ llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp @@ -174,6 +174,9 @@ // OptimizePICCall methods. bool OptimizePICCall::runOnMachineFunction(MachineFunction &F) { + if (skipFunction(*F.getFunction())) + return false; + if (static_cast(F.getSubtarget()).inMips16Mode()) return false;