[llvm] [AMDGPU] Fix for GFX11 VOPD interlock hazard (PR #220348)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 08:50:45 PDT 2026
================
@@ -223,9 +223,14 @@ bool llvm::checkVOPDRegConstraints(const SIInstrInfo &TII,
MIX.getOpcode() == AMDGPU::V_MOV_B32_e32 &&
MIY.getOpcode() == AMDGPU::V_MOV_B32_e32;
+ // GFX11 destination-buffer forwarding can lose the interlock when the X/Y
+ // operands of SRC0 or SRC1 are distinct VGPRs with the same parity. Require
+ // opposite parity instead of merely different banks when forming the pair.
+ bool HasGFX11InterlockHazard = ST.hasGFX11Insts() && !ST.hasGFX12Insts();
----------------
hidekisaito wrote:
ST.hasGFX11VOPDInterlockHazard() defined right next to ST.hasVALUPartialForwardingHazard(). Did not merge them as the root-cause of the issue is different --- but I won't insist if reviewers think they should be merged. Let me know. Used getGeneration() to align the implementation but I'm fine going back to Has*Insts check. Let me know.
https://github.com/llvm/llvm-project/pull/220348
More information about the llvm-commits
mailing list