[PATCH] D154482: [AMDGPU] Flush vmcnt in preheader for loops with loads

Austin Kerbow via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 5 01:40:14 PDT 2023


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

Expand hoisting waitcnt by flushing vmcnt in the preheader of all loops which use values loaded outside of the loop and contain VMEM loads.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154482

Files:
  llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/fp64-atomics-gfx90a.ll
  llvm/test/CodeGen/AMDGPU/atomicrmw-expand.ll
  llvm/test/CodeGen/AMDGPU/atomicrmw-nand.ll
  llvm/test/CodeGen/AMDGPU/flat_atomics_i64_min_max_system.ll
  llvm/test/CodeGen/AMDGPU/flat_atomics_min_max_system.ll
  llvm/test/CodeGen/AMDGPU/fp64-atomics-gfx90a.ll
  llvm/test/CodeGen/AMDGPU/global-load-saddr-to-vaddr.ll
  llvm/test/CodeGen/AMDGPU/global-saddr-atomics-min-max-system.ll
  llvm/test/CodeGen/AMDGPU/move-to-valu-atomicrmw-system.ll
  llvm/test/CodeGen/AMDGPU/waitcnt-vmcnt-loop.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154482.537256.patch
Type: text/x-patch
Size: 147906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230705/cdff3c23/attachment-0001.bin>


More information about the llvm-commits mailing list