From 32f843a21480de287229592e62f9a0f424a2c495 Mon Sep 17 00:00:00 2001 From: Yutetsu TAKATSUKASA Date: Sun, 27 Feb 2022 20:33:54 +0900 Subject: [PATCH] Internals: Don't show "Split always" statistics twice. (Split and Reorder were shown). (#3328) --- src/V3Split.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/V3Split.cpp b/src/V3Split.cpp index d980cc5be..fc9c75ea0 100644 --- a/src/V3Split.cpp +++ b/src/V3Split.cpp @@ -254,14 +254,11 @@ protected: SplitPliVertex* m_pliVertexp; // Element specifying PLI ordering V3Graph m_graph; // Scoreboard of var usages/dependencies bool m_inDly; // Inside ASSIGNDLY - VDouble0 m_statSplits; // Statistic tracking // CONSTRUCTORS public: SplitReorderBaseVisitor() { scoreboardClear(); } - virtual ~SplitReorderBaseVisitor() override { - V3Stats::addStat("Optimizations, Split always", m_statSplits); - } + virtual ~SplitReorderBaseVisitor() override = default; // METHODS protected: @@ -820,6 +817,7 @@ private: // AstNodeIf* whose condition we're currently visiting const AstNode* m_curIfConditional = nullptr; + VDouble0 m_statSplits; // Statistic tracking // CONSTRUCTORS public: @@ -841,7 +839,9 @@ public: } } - virtual ~SplitVisitor() override = default; + virtual ~SplitVisitor() override { + V3Stats::addStat("Optimizations, Split always", m_statSplits); + } // METHODS protected: