[llvm] [DeadStoreElimination] Visit blocks in RPO traversal when initializing DSEState (PR #137815)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 07:04:50 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 234ba0151..ab72e7578 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -970,8 +970,8 @@ struct DSEState {
DenseMap<const Value *, bool> InvisibleToCallerAfterRet;
// Keep track of blocks with throwing instructions not modeled in MemorySSA.
SmallPtrSet<BasicBlock *, 16> ThrowingBlocks;
- // Reverse post-order numbers for each basic block. Used to figure out if memory
- // accesses are executed before another access.
+ // Reverse post-order numbers for each basic block. Used to figure out if
+ // memory accesses are executed before another access.
DenseMap<BasicBlock *, unsigned> RPONumbers;
/// Keep track of instructions (partly) overlapping with killing MemoryDefs per
``````````
</details>
https://github.com/llvm/llvm-project/pull/137815
More information about the llvm-commits
mailing list