[llvm] Revert "[MemProf] Streamline and avoid unnecessary context id duplication (#107918)" (PR #108652)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 14:54:45 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 acf90fd03f8deb036847cbdf6bfd4ae47d88ba6a b7a82ecf907cb6672c84788a743d424e4e63e7fc --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 b328fd8d05..15afaa3b94 100644
--- a/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+++ b/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
@@ -1483,7 +1483,8 @@ void CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::updateStackNodes() {
     std::stable_sort(Calls.begin(), Calls.end(),
                      [](const CallContextInfo &A, const CallContextInfo &B) {
                        return A.StackIds.size() > B.StackIds.size() ||
-                              (A.StackIds.size() == B.StackIds.size() && A.StackIds < B.StackIds);
+                              (A.StackIds.size() == B.StackIds.size() &&
+                               A.StackIds < B.StackIds);
                      });
 
     // Find the node for the last stack id, which should be the same

``````````

</details>


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


More information about the llvm-commits mailing list