Suppress driver-driver conflict warning for unknown cell types, fixes #1065
authorClifford Wolf <clifford@clifford.at>
Wed, 5 Jun 2019 07:14:12 +0000 (09:14 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 5 Jun 2019 07:14:12 +0000 (09:14 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/opt/opt_clean.cc

index 7011d4602a36ab58bc9351189f923b656dc4f326..cfb0f788a5f8173c3753ddcc04ae0a0d1dbe6e6e 100644 (file)
@@ -106,7 +106,7 @@ void rmunused_module_cells(Module *module, bool verbose)
                                if (raw_bit.wire == nullptr)
                                        continue;
                                auto bit = sigmap(raw_bit);
-                               if (bit.wire == nullptr)
+                               if (bit.wire == nullptr && ct_all.cell_known(cell->type))
                                        driver_driver_logs[raw_sigmap(raw_bit)].push_back(stringf("Driver-driver conflict "
                                                        "for %s between cell %s.%s and constant %s in %s: Resolved using constant.",
                                                        log_signal(raw_bit), log_id(cell), log_id(it2.first), log_signal(bit), log_id(module)));