Fix stats file containing multiple unroll entries, bug1020.

Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
Johan Bjork 2016-01-06 20:53:48 -05:00 committed by Wilson Snyder
parent 340cc02171
commit 29daa58222
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Internal Verilation-time performance enhancements, bug1021. [Johan Bjork]
**** Fix stats file containing multiple unroll entries, bug1020. [Johan Bjork]
* Verilator 3.880 2015-12-19

View File

@ -444,8 +444,8 @@ public:
nodep->accept(*this);
}
virtual ~UnrollVisitor() {
V3Stats::addStat("Optimizations, Unrolled Loops", m_statLoops);
V3Stats::addStat("Optimizations, Unrolled Iterations", m_statIters);
V3Stats::addStatSum("Optimizations, Unrolled Loops", m_statLoops);
V3Stats::addStatSum("Optimizations, Unrolled Iterations", m_statIters);
}
};