summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/EarlyIfConversion.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-02 22:27:45 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-02 22:27:45 +0000
commitaeb69a54816a0a4f8dec74f11650d5337721e90e (patch)
tree46152943270347f20ecd2b7e39cca9f83dc6dcd5 /llvm/lib/CodeGen/EarlyIfConversion.cpp
parent459448241ad9cf507943bb7290aa773cb917f4f5 (diff)
downloadbcm5719-llvm-aeb69a54816a0a4f8dec74f11650d5337721e90e.tar.gz
bcm5719-llvm-aeb69a54816a0a4f8dec74f11650d5337721e90e.zip
Allow MachineTraceMetrics to be used when the model has no resources.
It it still possible to extract information from itineraries, for example. llvm-svn: 178582
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/EarlyIfConversion.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp
index fc767362be7..5447df09cbb 100644
--- a/llvm/lib/CodeGen/EarlyIfConversion.cpp
+++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp
@@ -677,10 +677,6 @@ bool EarlyIfConverter::shouldConvertIf() {
if (Stress)
return true;
- // Without a scheduling model, we can't make decisions.
- if (!SchedModel->hasInstrSchedModel())
- return false;
-
if (!MinInstr)
MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);
OpenPOWER on IntegriCloud