File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ using namespace llvm::PatternMatch;
114
114
115
115
STATISTIC (NumWorklistIterations,
116
116
" Number of instruction combining iterations performed" );
117
+ STATISTIC (NumOneIteration, " Number of functions with one iteration" );
118
+ STATISTIC (NumTwoIterations, " Number of functions with two iterations" );
119
+ STATISTIC (NumThreeIterations, " Number of functions with three iterations" );
120
+ STATISTIC (NumFourOrMoreIterations,
121
+ " Number of functions with four or more iterations" );
117
122
118
123
STATISTIC (NumCombined , " Number of insts combined" );
119
124
STATISTIC (NumConstProp, " Number of constant folds" );
@@ -4051,6 +4056,15 @@ static bool combineInstructionsOverFunction(
4051
4056
MadeIRChange = true ;
4052
4057
}
4053
4058
4059
+ if (Iteration == 1 )
4060
+ ++NumOneIteration;
4061
+ else if (Iteration == 2 )
4062
+ ++NumTwoIterations;
4063
+ else if (Iteration == 3 )
4064
+ ++NumThreeIterations;
4065
+ else
4066
+ ++NumFourOrMoreIterations;
4067
+
4054
4068
return MadeIRChange;
4055
4069
}
4056
4070
You can’t perform that action at this time.
0 commit comments