REVERT 612237b7: Optimize trace code for faster compiles on repeated types (#6707) (#6832 partial).

This commit is contained in:
Wilson Snyder
2025-12-17 17:37:35 -05:00
parent d10e841b56
commit 12ff481689
20 changed files with 105 additions and 6169 deletions
+1 -2
View File
@@ -429,12 +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 (vscp->tracePreserve()) clearSimple("Needed for tracing");
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");