Skip to content

Commit 4e51155

Browse files
authored
Merge pull request #78995 from jamieQ/DI-add-stats
[NFC]: add a FrontendStatsTracer for definite init
2 parents 77fc49c + 10b3753 commit 4e51155

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3874,6 +3874,9 @@ static void processMemoryObject(MarkUninitializedInst *I,
38743874
/// properly set and transform the code as required for flow-sensitive
38753875
/// properties.
38763876
static bool checkDefiniteInitialization(SILFunction &Fn) {
3877+
FrontendStatsTracer StatsTracer(Fn.getModule().getASTContext().Stats,
3878+
"definite-init", &Fn);
3879+
38773880
LLVM_DEBUG(llvm::dbgs() << "*** Definite Init visiting function: "
38783881
<< Fn.getName() << "\n");
38793882
bool Changed = false;

0 commit comments

Comments
 (0)