From fb931087abf52db1f0dbb6d3679c2b1b71cf56f3 Mon Sep 17 00:00:00 2001 From: Krzysztof Bieganski Date: Mon, 5 Sep 2022 17:20:38 +0200 Subject: [PATCH] Add stats tracking for `V3Undriven`. (#3600) Signed-off-by: Krzysztof Bieganski --- src/V3Undriven.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/V3Undriven.cpp b/src/V3Undriven.cpp index 0732dafa1..4f6374cde 100644 --- a/src/V3Undriven.cpp +++ b/src/V3Undriven.cpp @@ -30,6 +30,7 @@ #include "V3Ast.h" #include "V3Global.h" +#include "V3Stats.h" #include "V3String.h" #include @@ -475,4 +476,5 @@ public: void V3Undriven::undrivenAll(AstNetlist* nodep) { UINFO(2, __FUNCTION__ << ": " << endl); { UndrivenVisitor{nodep}; } + if (v3Global.opt.stats()) V3Stats::statsStage("undriven"); }