[PATCH] D156671: [AMDGPU][SIInsertWaitcnts] Initialize the WaitcntBrackets for non-kernel functions

Juan Manuel Martinez CaamaƱo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 04:48:03 PDT 2023


jmmartinez created this revision.
jmmartinez added reviewers: foad, rampitec.
Herald added subscribers: StephenFan, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
jmmartinez requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Currently 0 is assumed as the initial value for the counters,
and waitcnt instructions are inserted at the begining of non-entry functions to enforce this.

This patch initializes the counters to their maximum value instead of 0.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156671

Files:
  llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
  llvm/test/CodeGen/AMDGPU/amd.endpgm.ll
  llvm/test/CodeGen/AMDGPU/back-off-barrier-subtarget-feature.ll
  llvm/test/CodeGen/AMDGPU/waitcnt-overflow.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156671.545595.patch
Type: text/x-patch
Size: 6077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/7b5e777d/attachment.bin>


More information about the llvm-commits mailing list