Skip to content

Commit fda6a1a

Browse files
[Transforms] Use default member initialization in CHRStats (NFC)
1 parent 0782778 commit fda6a1a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,19 @@ FunctionPass *llvm::createControlHeightReductionLegacyPass() {
145145
namespace {
146146

147147
struct CHRStats {
148-
CHRStats() : NumBranches(0), NumBranchesDelta(0),
149-
WeightedNumBranchesDelta(0) {}
148+
CHRStats() = default;
150149
void print(raw_ostream &OS) const {
151150
OS << "CHRStats: NumBranches " << NumBranches
152151
<< " NumBranchesDelta " << NumBranchesDelta
153152
<< " WeightedNumBranchesDelta " << WeightedNumBranchesDelta;
154153
}
155-
uint64_t NumBranches; // The original number of conditional branches /
156-
// selects
157-
uint64_t NumBranchesDelta; // The decrease of the number of conditional
158-
// branches / selects in the hot paths due to CHR.
159-
uint64_t WeightedNumBranchesDelta; // NumBranchesDelta weighted by the profile
160-
// count at the scope entry.
154+
// The original number of conditional branches / selects
155+
uint64_t NumBranches = 0;
156+
// The decrease of the number of conditional branches / selects in the hot
157+
// paths due to CHR.
158+
uint64_t NumBranchesDelta = 0;
159+
// NumBranchesDelta weighted by the profile count at the scope entry.
160+
uint64_t WeightedNumBranchesDelta = 0;
161161
};
162162

163163
// RegInfo - some properties of a Region.

0 commit comments

Comments
 (0)