[llvm] [LCSSA] Cache the loop exit blocks across recursive analysis (NFC) (PR #101087)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 14:11:44 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 cfb92be0a9cdd0f4595100c5add4e2795a44134e dd289a1e4dc699a8964da9ae8239ff14ff9f85ca --extensions cpp -- llvm/lib/Transforms/Utils/LCSSA.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index d5c9a318f6..b2b346b417 100644
--- a/llvm/lib/Transforms/Utils/LCSSA.cpp
+++ b/llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -335,7 +335,8 @@ bool llvm::formLCSSAForInstructions(SmallVectorImpl<Instruction *> &Worklist,
// Compute the set of BasicBlocks in the loop `L` dominating at least one exit.
static void computeBlocksDominatingExits(
- Loop &L, const DominatorTree &DT, const SmallVectorImpl<BasicBlock *> &ExitBlocks,
+ Loop &L, const DominatorTree &DT,
+ const SmallVectorImpl<BasicBlock *> &ExitBlocks,
SmallSetVector<BasicBlock *, 8> &BlocksDominatingExits) {
// We start from the exit blocks, as every block trivially dominates itself
// (not strictly).
``````````
</details>
https://github.com/llvm/llvm-project/pull/101087
More information about the llvm-commits
mailing list