[llvm] [AMDGPU] Account for existing SDWA selections (PR #123221)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 09:08:18 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 088e74cf73549b556cb718f5322ae40a2c84a1f8 245c93bce25df06a000d7cc2e8d97ae828b55791 --extensions cpp -- 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 ae8c614ddb..713ef162f8 100644
--- a/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
+++ b/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
@@ -549,7 +549,7 @@ bool SDWADstOperand::convertToSDWA(MachineInstr &MI, const SIInstrInfo *TII,
   assert(DstSel);
   if (CombineSelections) {
     std::optional<SdwaSel> NewOp =
-     combineSdwaSel((SdwaSel)DstSel->getImm(), getDstSel());
+        combineSdwaSel((SdwaSel)DstSel->getImm(), getDstSel());
     if (!NewOp.has_value())
       return false;
     DstSel->setImm(NewOp.value());
@@ -1079,7 +1079,7 @@ bool isConvertibleToSDWA(MachineInstr &MI,
 }
 } // namespace
 
-MachineInstr* SIPeepholeSDWA::createSDWAVersion(MachineInstr &MI) {
+MachineInstr *SIPeepholeSDWA::createSDWAVersion(MachineInstr &MI) {
   unsigned Opcode = MI.getOpcode();
   assert(!TII->isSDWA(Opcode));
 

``````````

</details>


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


More information about the llvm-commits mailing list