[llvm] [MemProf] Disable hot hints by default, otherwise convert to NotCold (PR #124219)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 18:42:15 PST 2025
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 517334bdb83deaae3be6fbc4fa5f1d721b01c0f0 21bdbcf14f526139eaf83e6624a8b0814a69b66d --extensions h,cpp -- llvm/include/llvm/Analysis/MemoryProfileInfo.h llvm/lib/Analysis/MemoryProfileInfo.cpp llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp b/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
index 4161be0fad..b4e81e6911 100644
--- a/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
+++ b/llvm/unittests/Analysis/MemoryProfileInfoTest.cpp
@@ -82,7 +82,8 @@ TEST_F(MemoryProfileInfoTest, GetAllocType) {
// MemProfMinAveLifetimeAccessDensityHotThreshold
// so compute the HotTotalLifetimeAccessDensityThreshold at the threshold.
const uint64_t HotTotalLifetimeAccessDensityThreshold =
- (uint64_t)(MemProfMinAveLifetimeAccessDensityHotThreshold * AllocCount * 100);
+ (uint64_t)(MemProfMinAveLifetimeAccessDensityHotThreshold * AllocCount *
+ 100);
// Make sure the option for detecting hot allocations is set.
MemProfUseHotHints = true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/124219
More information about the llvm-commits
mailing list