[llvm] AMDGPU: Handle multiple AGPR MFMA rewrites (PR #147975)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 07:10:32 PDT 2025
================
@@ -208,8 +218,19 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::run(MachineFunction &MF) const {
CopySrcMI->setDesc(TII.get(AGPROp));
- // TODO: Is replacing too aggressive, fixup these instructions only?
- MRI.replaceRegWith(CopySrcReg, VReg);
+ // Perform replacement of the register, rewriting the rewritable uses.
+ for (MachineInstr &UseMI :
----------------
arsenm wrote:
It's use as in "is referenced" not "is use". I'm not going to bother fixing this since this code just gets deleted up the stack anyway
https://github.com/llvm/llvm-project/pull/147975
More information about the llvm-commits
mailing list