[llvm] [AMDGPU] Avoid wmma bank conflict for GFX11 and GFX12 (PR #205530)
Matthias Gehre via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 03:54:05 PDT 2026
================
@@ -617,6 +617,19 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunctionInfo,
// load/store is enabled.
IndexedMap<uint32_t, VGPRBlock2IndexFunctor> MaskForVGPRBlockOps;
+ // Maps each virtual register that is an operand of a bank-sensitive v_wmma_*
+ // (matrix sources a multiple of 128 bits) to that instruction's other operand
+ // registers. Populated once by GCNPreRAOptimizations and consumed by
+ // SIRegisterInfo::getRegAllocationHints for VGPR bank-conflict avoidance, so
+ // the hint hook does not rescan the function for every virtual register.
+ DenseMap<Register, SmallVector<Register, 3>> WMMABankSiblings;
----------------
mgehre-amd wrote:
This variable seems unused? There are getters but they are not called
https://github.com/llvm/llvm-project/pull/205530
More information about the llvm-commits
mailing list