[llvm] [DA] do not handle array accesses of different offsets (PR #123436)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 18:01:54 PST 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 a15fedc399d5d1aa07c14531e5cd8d3efc583600 bff0b1b6c1fda3427d87acb0f8f9595acf8fecd9 --extensions cpp -- llvm/lib/Analysis/DependenceAnalysis.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp
index 3f771a7878..9b00c008b9 100644
--- a/llvm/lib/Analysis/DependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -3662,7 +3662,8 @@ DependenceInfo::depends(Instruction *Src, Instruction *Dst,
return true;
// If the expression contains variable names, i.e., "n + 1", then we
// cannot reason about the coefficients of V being multiples of Size.
- if (SCEVExprContains(V, [](const SCEV *S) { return isa<SCEVUnknown>(S); }))
+ if (SCEVExprContains(V,
+ [](const SCEV *S) { return isa<SCEVUnknown>(S); }))
return false;
for (const SCEV *AddOp : Add->operands()) {
if (!checkOffsetsAndStrides(SE, AddOp, Size))
@@ -3675,7 +3676,8 @@ DependenceInfo::depends(Instruction *Src, Instruction *Dst,
return true;
// If the expression contains variable names, i.e., "n * 3", then we
// cannot reason about the coefficients of V being multiples of Size.
- if (SCEVExprContains(V, [](const SCEV *S) { return isa<SCEVUnknown>(S); }))
+ if (SCEVExprContains(V,
+ [](const SCEV *S) { return isa<SCEVUnknown>(S); }))
return false;
for (const SCEV *MulOp : Mul->operands()) {
if (!checkOffsetsAndStrides(SE, MulOp, Size))
``````````
</details>
https://github.com/llvm/llvm-project/pull/123436
More information about the llvm-commits
mailing list