summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2016-10-31 18:59:52 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2016-10-31 18:59:52 +0000
commit75cda2f2b50f7872e129f700663251711a3a2923 (patch)
tree353da5e629f2bdda9b920dd8a6ada51912361b74 /llvm/utils/TableGen
parent63b4a37ef56e21490dfb0bc4148f992f713f87cb (diff)
downloadbcm5719-llvm-75cda2f2b50f7872e129f700663251711a3a2923.tar.gz
bcm5719-llvm-75cda2f2b50f7872e129f700663251711a3a2923.zip
Fix per-processor model scheduler definition completeness check
The CodeGenSchedModels::checkCompleteness routine in TableGen/ CodeGenSchedule.cpp is supposed to verify for each processor model that is marked as "complete" that it actually defines a scheduling class for each instruction. However, this did not work correctly due to an incorrect check whether a scheduling class has an itinerary. Reviewer: atrick Differential revision: https://reviews.llvm.org/D26156 llvm-svn: 285622
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/CodeGenSchedule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenSchedule.cpp b/llvm/utils/TableGen/CodeGenSchedule.cpp
index eb7899ea92c..4cc600d059b 100644
--- a/llvm/utils/TableGen/CodeGenSchedule.cpp
+++ b/llvm/utils/TableGen/CodeGenSchedule.cpp
@@ -1567,7 +1567,8 @@ void CodeGenSchedModels::checkCompleteness() {
const CodeGenSchedClass &SC = getSchedClass(SCIdx);
if (!SC.Writes.empty())
continue;
- if (SC.ItinClassDef != nullptr)
+ if (SC.ItinClassDef != nullptr &&
+ SC.ItinClassDef->getName() != "NoItinerary")
continue;
const RecVec &InstRWs = SC.InstRWs;
OpenPOWER on IntegriCloud