[llvm] [LAA] Fix incorrect dependency classification. (PR #70819)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 08:42:58 PDT 2023
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 d4a885fcbc98ec8c62fde9ea7022611eafceb8c5 77e45128bf710d73c089a17ed447a22ac3af1565 -- llvm/lib/Analysis/LoopAccessAnalysis.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 7ab2959c4d88..5b6ba140514a 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1886,8 +1886,8 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
// If the induction step is negative we have to invert source and sink of the
// dependence.
ScalarEvolution &SE = *PSE.getSE();
- const SCEV *Dist = StrideAPtr < 0 ? SE.getMinusSCEV(Src, Sink) :
- SE.getMinusSCEV(Sink, Src);
+ const SCEV *Dist =
+ StrideAPtr < 0 ? SE.getMinusSCEV(Src, Sink) : SE.getMinusSCEV(Sink, Src);
LLVM_DEBUG(dbgs() << "LAA: Src Scev: " << *Src << "Sink Scev: " << *Sink
<< "(Induction step: " << StrideAPtr << ")\n");
``````````
</details>
https://github.com/llvm/llvm-project/pull/70819
More information about the llvm-commits
mailing list