[llvm] [GenericCycle] Add a Cache for getExitBlocks in GenericCycle (PR #112290)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 17:52:24 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 b8ee0aac2ad914ef663c0f1892f8a4d5cc70b9fc 08ce9cda6c231dd0ca80985bfc2ea92442fd6e25 --extensions h -- llvm/include/llvm/ADT/GenericCycleImpl.h llvm/include/llvm/ADT/GenericCycleInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ADT/GenericCycleInfo.h b/llvm/include/llvm/ADT/GenericCycleInfo.h
index 98d935975c..f3f1a0c45a 100644
--- a/llvm/include/llvm/ADT/GenericCycleInfo.h
+++ b/llvm/include/llvm/ADT/GenericCycleInfo.h
@@ -96,7 +96,7 @@ private:
 
 public:
   GenericCycle()
-      : ExitBlocksCache(std::make_unique<SmallVector<BlockT *, 4>>()){};
+      : ExitBlocksCache(std::make_unique<SmallVector<BlockT *, 4>>()) {};
 
   /// \brief Whether the cycle is a natural loop.
   bool isReducible() const { return Entries.size() == 1; }

``````````

</details>


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


More information about the llvm-commits mailing list