[PATCH] D118628: [TableGen] Fix reporting from CodeGenSchedModels::checkCompleteness()
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 1 09:34:44 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG16978d853bb8: [TableGen] Fix reporting from CodeGenSchedModels::checkCompleteness(). (authored by jonpa).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118628/new/
https://reviews.llvm.org/D118628
Files:
llvm/utils/TableGen/CodeGenSchedule.cpp
Index: llvm/utils/TableGen/CodeGenSchedule.cpp
===================================================================
--- llvm/utils/TableGen/CodeGenSchedule.cpp
+++ llvm/utils/TableGen/CodeGenSchedule.cpp
@@ -1982,7 +1982,6 @@
void CodeGenSchedModels::checkCompleteness() {
bool Complete = true;
- bool HadCompleteModel = false;
for (const CodeGenProcModel &ProcModel : procModels()) {
const bool HasItineraries = ProcModel.hasItineraries();
if (!ProcModel.ModelDef->getValueAsBit("CompleteModel"))
@@ -1994,7 +1993,7 @@
continue;
unsigned SCIdx = getSchedClassIdx(*Inst);
if (!SCIdx) {
- if (Inst->TheDef->isValueUnset("SchedRW") && !HadCompleteModel) {
+ if (Inst->TheDef->isValueUnset("SchedRW")) {
PrintError(Inst->TheDef->getLoc(),
"No schedule information for instruction '" +
Inst->TheDef->getName() + "' in SchedMachineModel '" +
@@ -2022,7 +2021,6 @@
Complete = false;
}
}
- HadCompleteModel = true;
}
if (!Complete) {
errs() << "\n\nIncomplete schedule models found.\n"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118628.404974.patch
Type: text/x-patch
Size: 1129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220201/5849d7a0/attachment.bin>
More information about the llvm-commits
mailing list