[llvm] [AMDGPU] Relax VOPD constraints for gfx12+ with data deps (PR #191264)

Joe Nash via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 14:29:37 PDT 2026


Sisyph wrote:

> > > We have lost a lot of dual instructions on GFX11, like `v_dual_mov_b32 v12, v3 :: v_dual_mov_b32 v3, v18`. I think that is legal to write to the source of first?
> > 
> > 
> > According to gfx11 spec this is not allowed "The instructions must be independent of each other" whereas GFX12 is a lot more specific about when this is allowed. But we have been forming them. So maybe they do work, and we should pursue a spec update?
> 
> That's what I see in the GFX11 spec: "The two instructions in the VOPD are executed at the same time, so there are no races between them if one reads a VGPR and the other writes the same VGPR. The 'read' gets the old value."

True. The statement I quoted probably needs an update then. Ok, then I'll re-enable antidependencies on gfx11. 

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


More information about the llvm-commits mailing list