Optimize trace code for faster compiles on repeated types (#6707) (#6832)

This commit is contained in:
Todd Strader
2026-04-14 19:16:21 -04:00
committed by GitHub
parent 38b7734530
commit 7f571971ca
160 changed files with 83459 additions and 32672 deletions
+1 -1
View File
@@ -429,11 +429,11 @@ class GateOkVisitor final : public VNVisitorConst {
// We only allow a LHS ref for the var being set, and a RHS ref for
// something else being read.
AstVarScope* const vscp = nodep->varScopep();
if (nodep->access().isWriteOnly()) {
if (m_lhsVarRef) clearSimple(">1 write refs");
m_lhsVarRef = nodep;
} else {
AstVarScope* const vscp = nodep->varScopep();
// TODO: possible bug, should it be >= 1 as add is below?
if (m_readVscps.size() > 1) {
if (m_buffersOnly) clearSimple(">1 rhs varRefs");