[all-commits] [llvm/llvm-project] 79e77a: [AMDGPU] Flush the vmcnt counter in loop preheader...
bsaleil via All-commits
all-commits at lists.llvm.org
Thu Jun 23 07:53:52 PDT 2022
Author: Baptiste Saleil <baptiste.saleil at amd.com>
Date: 2022-06-23 (Thu, 23 Jun 2022)
[AMDGPU] Flush the vmcnt counter in loop preheaders when necessary
waitcnt vmcnt instructions are currently generated in loop bodies before using
values loaded outside of the loop. In some cases, it is better to flush the
vmcnt counter in a loop preheader before entering the loop body. This patch
detects these cases and generates waitcnt instructions to flush the counter.
Reviewed By: foad
Differential Revision: https://reviews.llvm.org/D115747
More information about the All-commits