[llvm] r282428 - Add optimization bisect support to an optional Mips pass
Andrew Kaylor via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 12:05:38 PDT 2016
Author: akaylor
Date: Mon Sep 26 14:05:37 2016
New Revision: 282428
URL: http://llvm.org/viewvc/llvm-project?rev=282428&view=rev
Log:
Add optimization bisect support to an optional Mips pass
Differential Revision: https://reviews.llvm.org/D19513
Modified:
llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp?rev=282428&r1=282427&r2=282428&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsOptimizePICCall.cpp Mon Sep 26 14:05:37 2016
@@ -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;
More information about the llvm-commits
mailing list