[llvm] [Attributor] Reordering bins of an allocation based on access patterns (PR #95319)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 08:53:27 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 e80c59556d2d71cc2d0dcb2bd712c36cc4043025 df3df3e7dd486e124e2405af59cf313f5043de46 -- llvm/include/llvm/Transforms/IPO/Attributor.h llvm/lib/Transforms/IPO/AttributorAttributes.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 32ee83b7a9..c0d6debf1e 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -6423,8 +6423,8 @@ struct AAAllocationInfo : public StateWrapper<BooleanState, AbstractAttribute> {
   struct BinAccessGraphNode
       : public DGNode<BinAccessGraphNode, BinAccessGraphEdge> {
     BinAccessGraphNode(const AA::RangeTy &Node, BinAccessGraphEdge &Edge)
-        : DGNode<BinAccessGraphNode, BinAccessGraphEdge>(Edge),
-          BinRange(Node) {}
+        : DGNode<BinAccessGraphNode, BinAccessGraphEdge>(Edge), BinRange(Node) {
+    }
     BinAccessGraphNode(const AA::RangeTy &Node) : BinRange(Node) {}
 
   public:

``````````

</details>


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


More information about the llvm-commits mailing list