[llvm] [LAA] Support different strides & non constant dep distances using SCEV. (PR #88039)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 13:44:52 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 8671429151d5e67d3f21a737809953ae8bdfbfde 110e5ea24d4b23a153b5f602460b81e5228c700f -- llvm/lib/Analysis/LoopAccessAnalysis.cpp llvm/lib/Transforms/Scalar/LoopLoadElimination.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 314484e11c..762d5f0cfc 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -2020,7 +2020,7 @@ MemoryDepChecker::Dependence::DepType MemoryDepChecker::isDependent(
uint64_t CommonStride = StrideA == StrideB ? StrideA : 0;
if (isa<SCEVCouldNotCompute>(Dist)) {
- FoundNonConstantDistanceDependence = true;
+ FoundNonConstantDistanceDependence = true;
LLVM_DEBUG(dbgs() << "LAA: Dependence because of uncomputable distance.\n");
return Dependence::Unknown;
}
@@ -2107,7 +2107,8 @@ MemoryDepChecker::Dependence::DepType MemoryDepChecker::isDependent(
return Dependence::Unknown;
}
- // The logic below currently only supports StrideA == StrideB, i.e. there's a common stride.
+ // The logic below currently only supports StrideA == StrideB, i.e. there's a
+ // common stride.
if (!CommonStride)
return Dependence::Unknown;
``````````
</details>
https://github.com/llvm/llvm-project/pull/88039
More information about the llvm-commits
mailing list