[llvm] [WIP] AMDGPU: VGPR bank conflict avoidance hints (PR #192140)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 19 07:41:58 PDT 2026


================
@@ -274,6 +274,10 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
     return RC->TSFlags & SIRCFlags::HasSGPR;
   }
 
+  /// Returns true if MI is a 3-operand VALU instruction that may cause
+  /// bank conflicts if operands are from the same bank.
+  bool is3OperandVALU(const MachineInstr &MI) const;
----------------
shiltian wrote:

I think this is just to check if the MI is a three-operand VLAU. As for whether they may cause bank conflicts should be out of the scope of this function.

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


More information about the llvm-commits mailing list