Optimize logic in non-virtual interfaces with DFG (#6347)

This commit is contained in:
Geza Lore 2025-08-30 15:35:16 +01:00 committed by GitHub
parent c33f2b42aa
commit 3770273637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -233,6 +233,13 @@ class AstToDfgVisitor final : public VNVisitor {
// Containers to descend through to find logic constructs
void visit(AstNetlist* nodep) override { iterateAndNextNull(nodep->modulesp()); }
void visit(AstModule* nodep) override { iterateAndNextNull(nodep->stmtsp()); }
void visit(AstIface* nodep) override {
if (!nodep->hasVirtualRef()) {
iterateAndNextNull(nodep->stmtsp());
} else {
markReferenced(nodep);
}
}
void visit(AstTopScope* nodep) override { iterate(nodep->scopep()); }
void visit(AstScope* nodep) override { iterateChildren(nodep); }
void visit(AstActive* nodep) override {