[llvm] [AMDGPU] Support bottom-up postRA scheduing. (PR #135295)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 10 18:42:57 PDT 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 HEAD~1 HEAD --extensions h,cpp -- llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
index 254174e38..0f9d78006 100644
--- a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
@@ -442,7 +442,8 @@ void GCNHazardRecognizer::AdvanceCycle() {
}
void GCNHazardRecognizer::RecedeCycle() {
- // llvm_unreachable("hazard recognizer does not support bottom-up scheduling.");
+ // llvm_unreachable("hazard recognizer does not support bottom-up
+ // scheduling.");
if (!CurrCycleInstr) {
if (!EmittedInstrs.empty())
EmittedInstrs.pop_back();
@@ -461,7 +462,8 @@ void GCNHazardRecognizer::RecedeCycle() {
}
EmittedInstrs.push_back(CurrCycleInstr);
- for (unsigned i = 1, e = std::min(NumWaitStates, getMaxLookAhead()); i < e; ++i) {
+ for (unsigned i = 1, e = std::min(NumWaitStates, getMaxLookAhead()); i < e;
+ ++i) {
if (!EmittedInstrs.empty())
EmittedInstrs.pop_back();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/135295
More information about the llvm-commits
mailing list