[llvm] [AMDGPU] Add DAG mutation to improve scheduling before barriers (PR #142716)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 23:58:44 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 cpp,h -- llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.h llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp b/llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp
index e9fe48a9b..0fe2fe86b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp
@@ -42,7 +42,7 @@ static bool isMemRead(const MachineInstr *MI) {
   if (MI->isBundle()) {
     auto I = std::next(MI->getIterator());
     return I != MI->getParent()->instr_end() && I->isInsideBundle() &&
-        isRead(&*I);
+           isRead(&*I);
   }
 
   return isRead(MI);

``````````

</details>


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


More information about the llvm-commits mailing list