[llvm] Reapply "[MemProf] Reduce cloning overhead by sharing nodes when possible" (#102932) with fixes (PR #106623)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 16:43:52 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 66927fb95abef9327b453d7213c5df7d641269be a9f19fd273c00edb8131289e2e15fa6edb7e7bad --extensions cpp -- llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp b/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
index 4723d6e101..52def8f213 100644
--- a/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+++ b/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
@@ -1913,7 +1913,8 @@ void CallsiteContextGraph<DerivedCCG, FuncTy,
std::vector<CallInfo> AllCalls;
AllCalls.reserve(Node->MatchingCalls.size() + 1);
AllCalls.push_back(Node->Call);
- AllCalls.insert(AllCalls.end(), Node->MatchingCalls.begin(), Node->MatchingCalls.end());
+ AllCalls.insert(AllCalls.end(), Node->MatchingCalls.begin(),
+ Node->MatchingCalls.end());
auto It = AllCalls.begin();
// Iterate through the calls until we find the first that matches.
for (; It != AllCalls.end(); ++It) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/106623
More information about the llvm-commits
mailing list