[llvm-branch-commits] [llvm] AMDGPU: Handle rewriting VGPR MFMAs with immediate src2 (PR #153016)

Jeffrey Byrnes via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Aug 20 10:13:42 PDT 2025


================
@@ -259,13 +259,15 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::run(MachineFunction &MF) const {
       LLVM_DEBUG({
         dbgs() << "Attempting to replace VGPR MFMA with AGPR version:"
                << " Dst=[" << printReg(VReg) << " => "
-               << printReg(PhysReg, &TRI) << ']';
+               << printReg(PhysReg, &TRI);
----------------
jrbyrnes wrote:

Missing brace at end of `Dst=[` in the case that we have a Src2Reg

I'm seeing:
`Attempting to replace VGPR MFMA with AGPR version: Dst=[%7 => $agpr0_agpr1_agpr2_agpr3, Src2=[%2 => $vgpr2_vgpr3_vgpr4_vgpr5]`

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


More information about the llvm-branch-commits mailing list