diff --git a/Changes b/Changes index c16748deb..910316009 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/src/V3Unroll.cpp b/src/V3Unroll.cpp index b4d0cb05b..410ec14b8 100644 --- a/src/V3Unroll.cpp +++ b/src/V3Unroll.cpp @@ -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); } };