[llvm] unpack packed instructions overlapped by MFMAs post-RA scheduling (PR #157968)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 11 07:14:31 PDT 2025


================
@@ -39,6 +48,37 @@ class SIPreEmitPeephole {
                              const MachineBasicBlock &From,
                              const MachineBasicBlock &To) const;
   bool removeExeczBranch(MachineInstr &MI, MachineBasicBlock &SrcMBB);
+  // Check if the machine instruction being processed is a supported packed
+  // instruction
+  bool isUnpackingSupportedInstr(MachineInstr &MI) const;
+  // Creates a list of packed instructions following an MFMA that are suitable
+  // for unpacking.
+  void createListOfPackedInstr(MachineInstr &BeginMI,
----------------
jplehr wrote:

Maybe rename this one so that it indicates that this is not just a list of packed instructions but that they are suitable for unpacking

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


More information about the llvm-commits mailing list