diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-02 18:26:45 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-02 18:26:45 +0000 |
commit | 8fbfc59164b37f27854e3283c7c8812c8154f942 (patch) | |
tree | 754f16e4398f767c984a9fce00570887c5b6212f /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
parent | 119d3dfcba0e88e1e013ee86cf269a8553a80897 (diff) | |
download | bcm5719-llvm-8fbfc59164b37f27854e3283c7c8812c8154f942.tar.gz bcm5719-llvm-8fbfc59164b37f27854e3283c7c8812c8154f942.zip |
Don't attempt MTM heuristics without a scheduling model present.
This should fix the PPC buildbots.
llvm-svn: 178558
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/EarlyIfConversion.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index 5447df09cbb..fc767362be7 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp @@ -677,6 +677,10 @@ 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); |