Add stats tracking for `V3Undriven`. (#3600)

Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
This commit is contained in:
Krzysztof Bieganski 2022-09-05 17:20:38 +02:00 committed by GitHub
parent 937e893b6d
commit fb931087ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include "V3Ast.h"
#include "V3Global.h"
#include "V3Stats.h"
#include "V3String.h"
#include <algorithm>
@ -475,4 +476,5 @@ public:
void V3Undriven::undrivenAll(AstNetlist* nodep) {
UINFO(2, __FUNCTION__ << ": " << endl);
{ UndrivenVisitor{nodep}; }
if (v3Global.opt.stats()) V3Stats::statsStage("undriven");
}