[PATCH] D109870: [AMDGPU] Enable the pass "amdgpu-replace-lds-use-with-pointer"

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 20 23:02:05 PDT 2021


hsmhsm updated this revision to Diff 373783.
hsmhsm added a comment.

Find entry block split point (just after last static alloca) via backward iteration
of the block and get rid of entering into unnecessary workaround business of alloca
clustering (from this patch perspective) when we do forward iteration.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109870/new/

https://reviews.llvm.org/D109870

Files:
  llvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-diamond-shape.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-selected_functions.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-to-declare-only-func.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-global-scope-use.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-inline-asm-call.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-kernel-only-used-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-not-reachable-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-small-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-diamond-shape.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-selected_functions.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-signature-match.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-split-entry-bb-after-static-alloca.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-multiple-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-same-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr1.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr2.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-phi-inst.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109870.373783.patch
Type: text/x-patch
Size: 15951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210921/ead4bb96/attachment.bin>


More information about the llvm-commits mailing list