[llvm] [llvm][CodeGen] Some bugfix for window scheduler (PR #99429)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 21:22:01 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 ad154281230d83ee551e12d5be48bb956ef47ed3 320fc484c4bd8e06dadfd52633ac437d123d1b78 --extensions cpp -- llvm/lib/CodeGen/MachinePipeliner.cpp llvm/lib/CodeGen/WindowScheduler.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/WindowScheduler.cpp b/llvm/lib/CodeGen/WindowScheduler.cpp
index 7801803f82..8cc42bc048 100644
--- a/llvm/lib/CodeGen/WindowScheduler.cpp
+++ b/llvm/lib/CodeGen/WindowScheduler.cpp
@@ -511,8 +511,7 @@ int WindowScheduler::calculateStallCycle(unsigned Offset, int MaxCycle) {
       if (DefCycle < UseCycle)
         return WindowIILimit;
       // Get the stall cycle introduced by the register between two trips.
-      int StallCycle =
-          DefCycle + (int)Succ.getLatency() - CurrentII - UseCycle;
+      int StallCycle = DefCycle + (int)Succ.getLatency() - CurrentII - UseCycle;
       MaxStallCycle = std::max(MaxStallCycle, StallCycle);
     }
   }

``````````

</details>


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


More information about the llvm-commits mailing list