Increase split count of ChangeDet (#3072).

This commit is contained in:
Wilson Snyder 2021-07-23 19:24:25 -04:00
parent 1de33b9fb7
commit 19875d2e85
2 changed files with 5 additions and 2 deletions

View File

@ -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 { //

View File

@ -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);
}