From cb2d8259f2d0a4f7554f1d59be97570bec6e967f Mon Sep 17 00:00:00 2001 From: Johan Bjork Date: Thu, 28 Jan 2016 22:20:31 -0500 Subject: [PATCH] Fix stats and debug print, bug1029 Signed-off-by: Wilson Snyder --- src/V3Const.cpp | 1 - src/V3Life.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/V3Const.cpp b/src/V3Const.cpp index 641d2e4a4..1524d389a 100644 --- a/src/V3Const.cpp +++ b/src/V3Const.cpp @@ -451,7 +451,6 @@ private: if (!ifvarp || !elsevarp) return false; if (ifvarp->isWide()) return false; // Would need temporaries, so not worth it if (!ifvarp->sameGateTree(elsevarp)) return false; - UINFO(1,"HERE "<rhsp()->gateTree()) return false; if (!elsep->rhsp()->gateTree()) return false; return true; diff --git a/src/V3Life.cpp b/src/V3Life.cpp index 56ea6d8bf..b4772ddbe 100644 --- a/src/V3Life.cpp +++ b/src/V3Life.cpp @@ -59,8 +59,8 @@ public: // CONSTRUCTORS LifeState() {} ~LifeState() { - V3Stats::addStat("Optimizations, Lifetime assign deletions", m_statAssnDel); - V3Stats::addStat("Optimizations, Lifetime constant prop", m_statAssnCon); + V3Stats::addStatSum("Optimizations, Lifetime assign deletions", m_statAssnDel); + V3Stats::addStatSum("Optimizations, Lifetime constant prop", m_statAssnCon); for (vector::iterator it = m_unlinkps.begin(); it != m_unlinkps.end(); ++it) { (*it)->unlinkFrBack(); (*it)->deleteTree();