[llvm] [AMDGPU] Reset kill flags for multiple uses of SDWAInst Ops (PR #97135)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 19:58:29 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 ded956440739ae326a99cbaef18ce4362e972679 9620b78eff2038cdb91a04ec6274d6413331341f -- llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp b/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
index bf33a1982c..6d5a80759a 100644
--- a/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
+++ b/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
@@ -1191,7 +1191,7 @@ bool SIPeepholeSDWA::convertToSDWA(MachineInstr &MI,
     for (MachineOperand &MO : SDWAInst->uses()) {
       if (!MO.isReg())
         continue;
-    
+
       if (!MRI.hasOneUse(MO.getReg()))
         MRI.clearKillFlags(MO.getReg());
     }

``````````

</details>


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


More information about the llvm-commits mailing list