mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Fix mis-optimized identical submodule subtract, bug581.
This commit is contained in:
@@ -416,6 +416,7 @@ private:
|
||||
// If cleanup sameTree to be smarter, this can be restored.
|
||||
//return node1p->sameTree(node2p);
|
||||
return node1p->castVarRef()->varp() == node2p->castVarRef()->varp()
|
||||
&& node1p->castVarRef()->varScopep() == node2p->castVarRef()->varScopep()
|
||||
&& node1p->castVarRef()->lvalue() == node2p->castVarRef()->lvalue();
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user