[llvm] [AMDGPU] Fix illegal AGPR reclassification in RewriteMFMAFormStage (PR #200972)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 05:49:01 PDT 2026


================
@@ -2263,6 +2263,23 @@ static bool isReachingDefAGPRForm(MachineInstr *RD,
   return false;
 }
 
+/// Returns true when \p Reg has a use that requires it to stay in VGPR form
+/// after the rewrite, i.e. any use other than a group MFMA.
+static bool
+src2RegEscapesRewriteGroup(Register Reg, const MachineRegisterInfo &MRI,
----------------
MrSidims wrote:

Thanks! Applied this and other comments

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


More information about the llvm-commits mailing list