mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Rename AstAssignAlias to AstAlias and make it derive from AstNode instead of AstNodeStmt. Replace AstAlias with AstAssignW in V3LinkDot::linkDotScope, which is the last place we need to be aware of the alias construct. Using AstAssignW dowstream enables further optimization while preserving the same functionality.
This commit is contained in:
+1
-1
@@ -3145,7 +3145,7 @@ class ConstVisitor final : public VNVisitor {
|
||||
if (nodep->timingControlp()) m_hasJumpDelay = true;
|
||||
if (m_doNConst && replaceNodeAssign(nodep)) return;
|
||||
}
|
||||
void visit(AstAssignAlias* nodep) override {
|
||||
void visit(AstAlias* nodep) override {
|
||||
// Don't perform any optimizations, keep the alias around
|
||||
}
|
||||
void visit(AstAssignVarScope* nodep) override {
|
||||
|
||||
Reference in New Issue
Block a user