[llvm] [SCEV] Avoid erase+insert in constant folding (NFC) (PR #101642)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 02:09:05 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 85c5265feae82d8e26869adf4505b448b3a17534 919a6b8dc0f2838f5f0f251994d1e2cf41b3466d --extensions cpp -- llvm/lib/Analysis/ScalarEvolution.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f4c4dbd252..9e3c3d0278 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -777,8 +777,8 @@ CompareSCEVComplexity(EquivalenceClasses<const SCEV *> &EqCacheSCEV,
/// results from this routine. In other words, we don't want the results of
/// this to depend on where the addresses of various SCEV objects happened to
/// land in memory.
-static void GroupByComplexity(MutableArrayRef<const SCEV *> Ops,
- LoopInfo *LI, DominatorTree &DT) {
+static void GroupByComplexity(MutableArrayRef<const SCEV *> Ops, LoopInfo *LI,
+ DominatorTree &DT) {
if (Ops.size() < 2) return; // Noop
EquivalenceClasses<const SCEV *> EqCacheSCEV;
``````````
</details>
https://github.com/llvm/llvm-project/pull/101642
More information about the llvm-commits
mailing list