[llvm] [AMDGPU] Register allocation anti-hints to reduce MFMA hazard NOPs (PR #156943)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 07:57:57 PST 2026


================
@@ -1032,6 +1032,15 @@ class LLVM_ABI TargetRegisterInfo : public MCRegisterInfo {
     // Do nothing.
   }
 
+  /// Apply anti-hints to the allocation order.
+  virtual void
+  applyRegAllocationAntiHints(Register VirtReg, ArrayRef<MCPhysReg> &Order,
+                              SmallVectorImpl<MCPhysReg> &OrderStorage,
+                              SmallVector<MCPhysReg, 16> &AntiHints,
----------------
arsenm wrote:

```suggestion
                              SmallVectorImpl<MCPhysReg> &AntiHints,
```

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


More information about the llvm-commits mailing list