Pierre-vh wrote:

> @nhaehnle Minor question:
> 
> > `__builtin_amdgcn_pad_waitcnts_across_cf();`
> 
> It _feels_ like this could be an annotation on the block/branch ... with the 
> annoying bit that you'd need `llvm.maskedload(...) !amdgpu.balance.waits !{}` 
> and have that propagate down to the control flow inserted there, which might 
> not be worth the bother.

Yeah a branch annotation, or something around the condition a bit similar to 
the "expected" hint makes sense. I wonder how much work it is to add that and 
not inhibit any optimization along the way though

https://github.com/llvm/llvm-project/pull/243204
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to