[llvm] r256839 - [MISched] Explanatory error message when machine model is not complete. NFC
MinSeong Kim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 06:50:16 PST 2016
Author: minseongkim
Date: Tue Jan 5 08:50:15 2016
New Revision: 256839
URL: http://llvm.org/viewvc/llvm-project?rev=256839&view=rev
Log:
[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
Modified:
llvm/trunk/lib/CodeGen/TargetSchedule.cpp
Modified: llvm/trunk/lib/CodeGen/TargetSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetSchedule.cpp?rev=256839&r1=256838&r2=256839&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetSchedule.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetSchedule.cpp Tue Jan 5 08:50:15 2016
@@ -212,7 +212,7 @@ unsigned TargetSchedModel::computeOperan
&& !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
More information about the llvm-commits
mailing list