summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/EarlyIfConversion.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-05-03 22:32:30 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-05-03 22:32:30 +0000
commit50271f787e99a35010ddbaafaa8fe711da5899f8 (patch)
tree4a1e7c15845cfd69a2abf1d084c513975a3dfa8d /llvm/lib/CodeGen/EarlyIfConversion.cpp
parent539cd6758b8da2f35fb88a275374f752e7671e47 (diff)
downloadbcm5719-llvm-50271f787e99a35010ddbaafaa8fe711da5899f8.tar.gz
bcm5719-llvm-50271f787e99a35010ddbaafaa8fe711da5899f8.zip
Add opt-bisect support to additional passes that can be skipped
Differential Revision: http://reviews.llvm.org/D19882 llvm-svn: 268457
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/EarlyIfConversion.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp
index f253dc8a10f..4915447c502 100644
--- a/llvm/lib/CodeGen/EarlyIfConversion.cpp
+++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp
@@ -785,6 +785,9 @@ bool EarlyIfConverter::tryConvertIf(MachineBasicBlock *MBB) {
bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n"
<< "********** Function: " << MF.getName() << '\n');
+ if (skipFunction(*MF.getFunction()))
+ return false;
+
// Only run if conversion if the target wants it.
const TargetSubtargetInfo &STI = MF.getSubtarget();
if (!STI.enableEarlyIfConversion())
OpenPOWER on IntegriCloud