[llvm] [AMDGPU] Provide control to force VGPR MFMA form (PR #148079)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 25 02:45:14 PDT 2025


================
@@ -69,8 +79,8 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const Function &F,
     PSInputAddr = AMDGPU::getInitialPSInputAddr(F);
   }
 
-  MayNeedAGPRs = ST.hasMAIInsts();
-  if (ST.hasGFX90AInsts() &&
+  MayNeedAGPRs = ST.hasMAIInsts() && !MFMAVGPRForm;
----------------
arsenm wrote:

This breaks if used with gfx908, so it's impossible to flip the default 

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


More information about the llvm-commits mailing list