[llvm] AMDGPU: Handle multiple AGPR MFMA rewrites (PR #147975)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 3 22:59:05 PDT 2025
================
@@ -57,27 +57,36 @@ class AMDGPURewriteAGPRCopyMFMAImpl {
TRI(*ST.getRegisterInfo()), MRI(MF.getRegInfo()), VRM(VRM), LRM(LRM),
LIS(LIS) {}
+ bool isRewriteCandidate(const MachineInstr &MI) const {
+ return TII.isMAI(MI) && AMDGPU::getMFMASrcCVDstAGPROp(MI.getOpcode()) != -1;
+ }
+
/// Compute the register class constraints based on the uses of \p Reg,
----------------
perlfu wrote:
Comment needs updating as arguments to function have changed.
https://github.com/llvm/llvm-project/pull/147975
More information about the llvm-commits
mailing list