[llvm] Use BlockFrequency type in more places (NFC) (PR #68266)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 4 15:26:16 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 04b45450ac0092fc6d04b5f9bfd46610c442db3f 5a7c8e10331698dbd03ebd1e498c5ac200412724 -- llvm/include/llvm/Analysis/BlockFrequencyInfo.h llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h llvm/include/llvm/Analysis/ProfileSummaryInfo.h llvm/include/llvm/CodeGen/MBFIWrapper.h llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h llvm/include/llvm/Support/BlockFrequency.h llvm/include/llvm/Transforms/Instrumentation/CFGMST.h llvm/lib/Analysis/BlockFrequencyInfo.cpp llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp llvm/lib/Analysis/CFGPrinter.cpp llvm/lib/Analysis/ModuleSummaryAnalysis.cpp llvm/lib/CodeGen/CodeGenPrepare.cpp llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp llvm/lib/CodeGen/MBFIWrapper.cpp llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp llvm/lib/CodeGen/MachineBlockPlacement.cpp llvm/lib/CodeGen/RegAllocGreedy.cpp llvm/lib/CodeGen/SelectOptimize.cpp llvm/lib/CodeGen/ShrinkWrap.cpp llvm/lib/CodeGen/SpillPlacement.cpp llvm/lib/CodeGen/SpillPlacement.h llvm/lib/Target/PowerPC/PPCMIPeephole.cpp llvm/lib/Transforms/IPO/FunctionSpecialization.cpp llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp llvm/lib/Transforms/Instrumentation/CGProfile.cpp llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp llvm/lib/Transforms/Scalar/JumpThreading.cpp llvm/lib/Transforms/Scalar/LoopSink.cpp llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp llvm/lib/Transforms/Utils/CodeExtractor.cpp llvm/lib/Transforms/Utils/InlineFunction.cpp llvm/unittests/Analysis/BlockFrequencyInfoTest.cpp llvm/unittests/Support/BlockFrequencyTest.cpp llvm/unittests/Transforms/IPO/FunctionSpecializationTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 7d2ac93b62e9..f8063248de25 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -1630,7 +1630,7 @@ unsigned RAGreedy::tryLocalSplit(const LiveInterval &VirtReg,
float BestDiff = 0;
const float blockFreq =
- SpillPlacer->getBlockFrequency(BI.MBB->getNumber()).getFrequency() *
+ SpillPlacer->getBlockFrequency(BI.MBB->getNumber()).getFrequency() *
(1.0f / MBFI->getEntryFreq().getFrequency());
SmallVector<float, 8> GapWeight;
``````````
</details>
https://github.com/llvm/llvm-project/pull/68266
More information about the llvm-commits
mailing list