[llvm] [AMDGPU] RewriteMFMAFormStage: use isMFMA instead of isMAI (PR #199976)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 02:34:56 PDT 2026


xgxanq wrote:

> > I got it wrong earlier: the SIFoldOperands pass can emit concrete V_ACCVGPR_READ_B32_e64 instructions. But in that scenario, even though the dst of V_ACCVGPR_READ_B32_e64 is a VGPR, it won’t be used by anything related to this rewrite.
> 
> I believe it only does that for gfx908 where it's complicated to copy between VGPR and AGPR. For gfx90a+, these should be COPY

Yes,you are absolutely right.  So this part isn't relevant at all.

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


More information about the llvm-commits mailing list