forked from github/verilator
Increase split count of ChangeDet (#3072).
This commit is contained in:
parent
1de33b9fb7
commit
19875d2e85
@ -151,8 +151,11 @@ private:
|
||||
AstAssign* const initp = new AstAssign{m_vscp->fileline(), m_newLvEqnp->cloneTree(true),
|
||||
m_varEqnp->cloneTree(true)};
|
||||
m_statep->m_chgFuncp->addFinalsp(initp);
|
||||
|
||||
// Later code will expand words which adds to GCC compile time,
|
||||
// so add penalty based on word width also
|
||||
EmitCBaseCounterVisitor visitor{initp};
|
||||
m_statep->m_numStmts += visitor.count();
|
||||
m_statep->m_numStmts += visitor.count() + m_varEqnp->widthWords();
|
||||
}
|
||||
|
||||
virtual void visit(AstBasicDType*) override { //
|
||||
|
@ -122,7 +122,7 @@ private:
|
||||
int m_count = 0; // Number of statements
|
||||
// VISITORS
|
||||
virtual void visit(AstNode* nodep) override {
|
||||
m_count++;
|
||||
++m_count;
|
||||
iterateChildren(nodep);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user