[llvm-branch-commits] [llvm] [AMDGPU][GlobalISel] Add COPY_SCC_VCC combine for VCC-SGPR-VGPR pattern (PR #179352)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Feb 7 01:34:25 PST 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp llvm/lib/Target/AMDGPU/SIISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp b/llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
index 082986726..34a41ad94 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
@@ -517,8 +517,7 @@ bool AMDGPURegBankCombinerImpl::matchCopySccVcc(
MachineInstr *CondDef;
Register TrueReg, FalseReg;
if (!mi_match(SgprSrc, MRI,
- m_GISelect(m_MInstr(CondDef), m_Reg(TrueReg),
- m_Reg(FalseReg))))
+ m_GISelect(m_MInstr(CondDef), m_Reg(TrueReg), m_Reg(FalseReg))))
return false;
if (CondDef->getOpcode() != AMDGPU::G_AMDGPU_COPY_SCC_VCC)
``````````
</details>
https://github.com/llvm/llvm-project/pull/179352
More information about the llvm-branch-commits
mailing list