[PATCH] D100117: [AMDGPU] SIFoldOperands: eagerly delete dead copies

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 8 08:42:19 PDT 2021


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

This is cheap to implement, means less work for future passes like
MachineDCE, and slightly improves the folding in some cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100117

Files:
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll
  llvm/test/CodeGen/AMDGPU/flat-scratch-fold-fi.mir
  llvm/test/CodeGen/AMDGPU/fold-cndmask-wave32.mir
  llvm/test/CodeGen/AMDGPU/fold-cndmask.mir
  llvm/test/CodeGen/AMDGPU/fold-imm-f16-f32.mir
  llvm/test/CodeGen/AMDGPU/fold-operands-order.mir
  llvm/test/CodeGen/AMDGPU/fold-readlane.mir
  llvm/test/CodeGen/AMDGPU/huge-number-operand-folds.mir
  llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll
  llvm/test/CodeGen/AMDGPU/udiv64.ll
  llvm/test/CodeGen/AMDGPU/urem64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100117.336131.patch
Type: text/x-patch
Size: 10334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210408/38d1417b/attachment.bin>


More information about the llvm-commits mailing list