[PATCH] D135733: AMDGPU: Treat asm as a hazard for all register read-after-write hazards
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 17 08:53:52 PDT 2022
arsenm added a comment.
In D135733#3862393 <https://reviews.llvm.org/D135733#3862393>, @kerbowa wrote:
> In D135733#3855154 <https://reviews.llvm.org/D135733#3855154>, @foad wrote:
>
>> Could you detect empty inline asms and do this only for the non-empty ones? In graphics we use empty inline asms as some kind of scheduling barrier. (Granted this is just a workaround for problems elsewhere, but I don't really want it broken or penalised just now.)
>
> Could you use llvm.amdgcn.sched.barrier instead?
No. It's not really a scheduling barrier, it's a workaround for not having convergence tokens. The real problem is hoisting cross lane operations
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135733/new/
https://reviews.llvm.org/D135733
More information about the llvm-commits
mailing list