[all-commits] [llvm/llvm-project] ebdcef: [AMDGPU] Avoid inserting noops during scheduling

Austin Kerbow via All-commits all-commits at lists.llvm.org
Tue Oct 20 17:12:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ebdcef20ce2921d1b6e8463ecf4031396cef79dc
      https://github.com/llvm/llvm-project/commit/ebdcef20ce2921d1b6e8463ecf4031396cef79dc
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
    M llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.i128.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.div.fmas.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.update.dpp.ll
    M llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
    M llvm/test/CodeGen/AMDGPU/atomic_optimizations_pixelshader.ll
    M llvm/test/CodeGen/AMDGPU/global-saddr-atomics.ll
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.update.dpp.ll
    M llvm/test/CodeGen/AMDGPU/memory_clause.ll
    R llvm/test/CodeGen/AMDGPU/nop-fold.mir
    M llvm/test/CodeGen/AMDGPU/power-sched-no-instr-sunit.mir

  Log Message:
  -----------
  [AMDGPU] Avoid inserting noops during scheduling

Passes that are run after the post-RA scheduler may insert instructions like
waitcnt which eliminate the need for certain noops. After this patch the
scheduler is still aware of possible latency from hazards but noops will
not be inserted until the dedicated hazard recognizer pass is run.

Depends on D89753.

Reviewed By: foad

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




More information about the All-commits mailing list