llvm.org GIT mirror llvm / 423d674
Don't attempt MTM heuristics without a scheduling model present. This should fix the PPC buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178558 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 7 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
676676 if (Stress)
677677 return true;
678678
679 // Without a scheduling model, we can't make decisions.
680 if (!SchedModel->hasInstrSchedModel())
681 return false;
682
679683 if (!MinInstr)
680684 MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);
681685
0 ; RUN: llc < %s -x86-early-ifcvt -verify-machineinstrs
11 ; RUN: llc < %s -x86-early-ifcvt -stress-early-ifcvt -verify-machineinstrs
2 ; CPU without a scheduling model:
3 ; RUN: llc < %s -x86-early-ifcvt -mcpu=pentium3 -verify-machineinstrs
24 ;
35 ; Run these tests with and without -stress-early-ifcvt to exercise heuristics.
46 ;