diff options
author | Kazu Hirata <kazu@google.com> | 2022-02-13 10:33:56 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-02-13 10:33:56 -0800 |
commit | fda6a1ad4202b35c604a508aab4c543e1b7693af (patch) | |
tree | 51e56a539717ed0372fff6c939fd3f8b0757e2e5 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 0782778c9e88ad36f5e1cb299747a32396333fb2 (diff) | |
download | llvm-fda6a1ad4202b35c604a508aab4c543e1b7693af.zip llvm-fda6a1ad4202b35c604a508aab4c543e1b7693af.tar.gz llvm-fda6a1ad4202b35c604a508aab4c543e1b7693af.tar.bz2 |
[Transforms] Use default member initialization in CHRStats (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 497aac3..29d0e3e 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -145,19 +145,19 @@ FunctionPass *llvm::createControlHeightReductionLegacyPass() { namespace { struct CHRStats { - CHRStats() : NumBranches(0), NumBranchesDelta(0), - WeightedNumBranchesDelta(0) {} + CHRStats() = default; void print(raw_ostream &OS) const { OS << "CHRStats: NumBranches " << NumBranches << " NumBranchesDelta " << NumBranchesDelta << " WeightedNumBranchesDelta " << WeightedNumBranchesDelta; } - uint64_t NumBranches; // The original number of conditional branches / - // selects - uint64_t NumBranchesDelta; // The decrease of the number of conditional - // branches / selects in the hot paths due to CHR. - uint64_t WeightedNumBranchesDelta; // NumBranchesDelta weighted by the profile - // count at the scope entry. + // The original number of conditional branches / selects + uint64_t NumBranches = 0; + // The decrease of the number of conditional branches / selects in the hot + // paths due to CHR. + uint64_t NumBranchesDelta = 0; + // NumBranchesDelta weighted by the profile count at the scope entry. + uint64_t WeightedNumBranchesDelta = 0; }; // RegInfo - some properties of a Region. |