[all-commits] [llvm/llvm-project] 5f7ea8: [AMDGPU] Remove unnecessary s_waitcnt between VMEM...

jayfoad via All-commits all-commits at lists.llvm.org
Fri May 1 02:38:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f7ea85e789d5b5f3f463e538a28c040e373620b
      https://github.com/llvm/llvm-project/commit/5f7ea85e789d5b5f3f463e538a28c040e373620b
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/test/CodeGen/AMDGPU/mubuf-legalize-operands.ll
    M llvm/test/CodeGen/AMDGPU/shl.ll
    M llvm/test/CodeGen/AMDGPU/wait.ll
    A llvm/test/CodeGen/AMDGPU/waitcnt-vmem-waw.mir

  Log Message:
  -----------
  [AMDGPU] Remove unnecessary s_waitcnt between VMEM loads

VMEM loads of the same type (sampler vs no sampler) are guaranteed to
write their result registers in order, so there is no need for an
s_waitcnt even if they write to overlapping vgprs.

Differential Revision: https://reviews.llvm.org/D79176




More information about the All-commits mailing list