[llvm] [LoopInterchange] Remove 'S' Scalar Dependencies (PR #119345)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 04:11:06 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 408659c5b5c7d745042ae71db344d1ed10601512 95395bbd36edb59b13b7b4e0301bd2f6527b0f12 --extensions cpp -- llvm/lib/Transforms/Scalar/LoopInterchange.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
index 78b8f71363..0d8f52e12d 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -137,8 +137,7 @@ static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level,
         char Direction;
         for (unsigned II = 1; II <= Levels; ++II) {
           unsigned Dir = D->getDirection(II);
-          if (Dir == Dependence::DVEntry::LT ||
-              Dir == Dependence::DVEntry::LE)
+          if (Dir == Dependence::DVEntry::LT || Dir == Dependence::DVEntry::LE)
             Direction = '<';
           else if (Dir == Dependence::DVEntry::GT ||
                    Dir == Dependence::DVEntry::GE)

``````````

</details>


https://github.com/llvm/llvm-project/pull/119345


More information about the llvm-commits mailing list