Fix hierarchical --prof-pgo (#6213)

This commit is contained in:
Bartłomiej Chmiel
2025-09-13 10:19:00 -04:00
committed by GitHub
parent 907047d823
commit be813e96dd
11 changed files with 110 additions and 86 deletions
+6
View File
@@ -34,6 +34,7 @@
#include "V3Combine.h"
#include "V3Common.h"
#include "V3Const.h"
#include "V3Control.h"
#include "V3Coverage.h"
#include "V3CoverageJoin.h"
#include "V3Dead.h"
@@ -590,6 +591,11 @@ static void process() {
// Create AstCUse to determine what class forward declarations/#includes needed in C
V3CUse::cUseAll();
// Evaluate cost of a current hierarchical block
if (!v3Global.opt.libCreate().empty()) {
v3Global.currentHierBlockCost(V3Control::getCurrentHierBlockCost());
}
}
// Output the text