[llvm] [SampleFDO] Stale profile call-graph matching (PR #95135)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 18:04:30 PDT 2024


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 3f3e85cd234c1a57021b6622590f75d42054ef12 ecc40001e564b302f11365ad75bd65f78c55690e -- llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h llvm/lib/Transforms/IPO/SampleProfile.cpp llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h b/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
index 09b8211c4f..c2d4f778fb 100644
--- a/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
+++ b/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
@@ -116,7 +116,7 @@ public:
       HashKeyMap<std::unordered_map, FunctionId, Function *> &SymMap,
       std::shared_ptr<ProfileSymbolList> PSL)
       : M(M), Reader(Reader), CG(CG), ProbeManager(ProbeManager),
-        LTOPhase(LTOPhase), SymbolMap(&SymMap), PSL(PSL){};
+        LTOPhase(LTOPhase), SymbolMap(&SymMap), PSL(PSL) {};
   void runOnModule();
   void clearMatchingData() {
     // Do not clear FuncMappings, it stores IRLoc to ProfLoc remappings which

``````````

</details>


https://github.com/llvm/llvm-project/pull/95135


More information about the llvm-commits mailing list