[llvm] [AMDGPU] SIInstrInfo: Fix resultDependsOnExec for VOPC instructions (PR #134629)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 09:50:42 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/SIInstrInfo.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index e8f85013c..d4ff7728b 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -154,7 +154,7 @@ bool SIInstrInfo::resultDependsOnExec(const MachineInstr &MI) const {
     const MachineRegisterInfo &MRI = MI.getParent()->getParent()->getRegInfo();
     const MachineOperand *Dst = getNamedOperand(MI, AMDGPU::OpName::sdst);
 
-    if(!Dst)
+    if (!Dst)
       return true;
 
     Register DstReg = Dst->getReg();

``````````

</details>


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


More information about the llvm-commits mailing list