[llvm] [ctx_prof] Simple ICP criteria during module inliner (PR #109881)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 16:11:23 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 491123562a7597f8b43e317a6481c69e4d15c4e7 2059c96567c7b766db1c1eb3d9d6b32e64c269ab --extensions h,cpp -- llvm/include/llvm/Analysis/CtxProfAnalysis.h llvm/lib/Analysis/CtxProfAnalysis.cpp llvm/lib/Transforms/IPO/ModuleInliner.cpp llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Analysis/CtxProfAnalysis.h b/llvm/include/llvm/Analysis/CtxProfAnalysis.h
index ffcecac079..0a9543f037 100644
--- a/llvm/include/llvm/Analysis/CtxProfAnalysis.h
+++ b/llvm/include/llvm/Analysis/CtxProfAnalysis.h
@@ -66,7 +66,8 @@ public:
StringRef getFunctionName(GlobalValue::GUID GUID) const {
auto It = FuncInfo.find(GUID);
- if (It == FuncInfo.end()) return "";
+ if (It == FuncInfo.end())
+ return "";
return It->second.Name;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/109881
More information about the llvm-commits
mailing list