From: MinSeong Kim Date: Tue, 5 Jan 2016 14:50:15 +0000 (+0000) Subject: [MISched] Explanatory error message when machine model is not complete. NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ec3763313ac986bab8414f16267605c9ab28b64;p=oota-llvm.git [MISched] Explanatory error message when machine model is not complete. NFC When not all instructions have a scheduling class, the error message now provides a possible solution. Differential Revision: http://reviews.llvm.org/D15854 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256839 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetSchedule.cpp b/lib/CodeGen/TargetSchedule.cpp index fc656396ade..1c4558cea5f 100644 --- a/lib/CodeGen/TargetSchedule.cpp +++ b/lib/CodeGen/TargetSchedule.cpp @@ -212,7 +212,7 @@ unsigned TargetSchedModel::computeOperandLatency( && !DefMI->getDesc().OpInfo[DefOperIdx].isOptionalDef() && SchedModel.isComplete()) { errs() << "DefIdx " << DefIdx << " exceeds machine model writes for " - << *DefMI; + << *DefMI << " (Try with MCSchedModel.CompleteModel set to false)"; llvm_unreachable("incomplete machine model"); } #endif