[llvm] [AMDGPU] Add wait states between different MFMAs sharing an accumulator (PR #218363)

Pankaj Dwivedi via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 01:23:09 PDT 2026


================
@@ -3164,6 +3164,16 @@ int GCNHazardRecognizer::checkMAIHazards908(MachineInstr *MI) const {
   return WaitStatesNeeded;
 }
 
+/// Map an MFMA opcode to a form that ignores the vdst/src2 register bank and
+/// the mac form, so two MFMAs can be compared for being the same instruction.
+static unsigned canonicalizeMFMAOpcode(unsigned Opc) {
----------------
PankajDwivedi-25 wrote:

Right, I have updated. Thanks for the feedback

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


More information about the llvm-commits mailing list