Optimize logic in non-virtual interfaces with DFG (#6347)
This commit is contained in:
parent
c33f2b42aa
commit
3770273637
|
|
@ -233,6 +233,13 @@ class AstToDfgVisitor final : public VNVisitor {
|
||||||
// Containers to descend through to find logic constructs
|
// Containers to descend through to find logic constructs
|
||||||
void visit(AstNetlist* nodep) override { iterateAndNextNull(nodep->modulesp()); }
|
void visit(AstNetlist* nodep) override { iterateAndNextNull(nodep->modulesp()); }
|
||||||
void visit(AstModule* nodep) override { iterateAndNextNull(nodep->stmtsp()); }
|
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(AstTopScope* nodep) override { iterate(nodep->scopep()); }
|
||||||
void visit(AstScope* nodep) override { iterateChildren(nodep); }
|
void visit(AstScope* nodep) override { iterateChildren(nodep); }
|
||||||
void visit(AstActive* nodep) override {
|
void visit(AstActive* nodep) override {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue