Minor changes ontop of 71bcc4c: Remove hierarchy warning that is redundant to -check
authorClifford Wolf <clifford@clifford.at>
Sun, 24 Feb 2019 19:41:36 +0000 (20:41 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 24 Feb 2019 19:41:36 +0000 (20:41 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/hierarchy/hierarchy.cc

index cb54ffa584c228f4d55366edc76861d3bf4e854e..2d8edebb5d5879d6ad66d07ade6f0cc1486765aa 100644 (file)
@@ -527,11 +527,7 @@ int find_top_mod_score(Design *design, Module *module, dict<Module*, int> &db)
                        // Is this cell a module instance?
                        auto instModule = design->module(celltype);
                        // If there is no instance for this, issue a warning.
-                       if (instModule == NULL) {
-                               //  but only if we're sure it is a reference to a module.
-                               if (celltype[0] != '$')
-                                       log_warning("find_top_mod_score: no instance for %s.%s\n", celltype.c_str(), cell->name.c_str());
-                       } else {
+                       if (instModule != nullptr) {
                                score = max(score, find_top_mod_score(design, instModule, db) + 1);
                        }
                }