[llvm] [AMDGPU] Add scheduling stage to rewrite MFMA from VGPR to AGPR (PR #170335)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 11:18:28 PST 2025


================
@@ -1837,6 +1945,532 @@ void GCNSchedStage::revertScheduling() {
   DAG.Regions[RegionIdx] = std::pair(DAG.RegionBegin, DAG.RegionEnd);
 }
 
+bool RewriteScheduleStage::isRewriteCandidate(MachineInstr *MI) const {
+
----------------
arsenm wrote:

Duplicating the core rewrite logic from AMDGPURewriteAGPRCopyMFMA is unfortunate. This should eventually cover more cases, like https://github.com/llvm/llvm-project/issues/168983

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


More information about the llvm-commits mailing list