phase4: Only show elision message for clusters that were not autogenerated.

This commit is contained in:
Danny Milosavljevic
2021-03-19 22:11:55 +01:00
parent 8558266da6
commit 0418ac6cda
+7 -1
View File
@@ -81,7 +81,13 @@ def traverse(source_root, parent_name, peripheral_name):
elif node.tag == "register":
cluster.remove(node)
source_root.append(node)
print("Info: Eliding cluster {!r} grouping because there's only one node in it".format(cluster.find("name").text), file=sys.stderr)
cluster_name = cluster.find("name").text
if not cluster_name.endswith("_unsorted"):
print("Info: Eliding cluster {!r} grouping because there's only one node in it".format(cluster_name), file=sys.stderr)
else:
# generated and then elided agai
pass # no one cares
break
else:
assert False, node.tag