[PATCH] D152706: [AMDGPU] Use SSAUpdater in PromoteAlloca

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 06:06:39 PDT 2023


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

This allows PromoteAlloca to not be reliant on a second SROA run to remove the alloca completely. It just does the full transformation directly.

Note PromoteAlloca is still reliant on SROA running first to
canonicalize the IR. For instance, PromoteAlloca will no longer handle aggregate types because those should be simplified by SROA before reaching the pass.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152706

Files:
  llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  llvm/test/CodeGen/AMDGPU/fix-frame-reg-in-custom-csr-spills.ll
  llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-array-aggregate.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-globals.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-memset.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-pointer-array.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-vector-to-vector.ll
  llvm/test/CodeGen/AMDGPU/sroa-before-unroll.ll
  llvm/test/CodeGen/AMDGPU/vector-alloca-bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152706.530483.patch
Type: text/x-patch
Size: 59138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230612/57850dd1/attachment.bin>


More information about the llvm-commits mailing list