[llvm] [DA] Refactor the signature of the Exact RDIV test (NFCI) (PR #189535)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 00:16:45 PDT 2026
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 origin/main HEAD --extensions cpp,h -- llvm/include/llvm/Analysis/DependenceAnalysis.h llvm/lib/Analysis/DependenceAnalysis.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 0716a4375..173498356 100644
--- a/llvm/lib/Analysis/DependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -2103,7 +2103,8 @@ bool DependenceInfo::testRDIV(const SCEV *Src, const SCEV *Dst,
const SCEVAddRecExpr *SrcAddRec = dyn_cast<SCEVAddRecExpr>(Src);
const SCEVAddRecExpr *DstAddRec = dyn_cast<SCEVAddRecExpr>(Dst);
assert(SrcAddRec && DstAddRec && "Unexpected non-addrec input");
- return exactRDIVtest(SrcAddRec, DstAddRec, Result) || gcdMIVtest(Src, Dst, Result);
+ return exactRDIVtest(SrcAddRec, DstAddRec, Result) ||
+ gcdMIVtest(Src, Dst, Result);
}
// Tests the single-subscript MIV pair (Src and Dst) for dependence.
``````````
</details>
https://github.com/llvm/llvm-project/pull/189535
More information about the llvm-commits
mailing list