[PATCH] D158063: [GISel][AArch64] Combine G_BUILD_VECTOR(G_UNMERGE) with undef elements

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 02:15:47 PDT 2023


dmgreen updated this revision to Diff 551937.
dmgreen edited the summary of this revision.
dmgreen added a comment.
Herald added subscribers: sunshaoce, kerbowa, jvesely.

OK - this now just removes the nodes. It does mean we lose information about which lanes are undef, but there are less instructions to deal with and we don't need to do it just when the shuffle is legal.


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

https://reviews.llvm.org/D158063

Files:
  llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
  llvm/test/CodeGen/AArch64/fabs.ll
  llvm/test/CodeGen/AArch64/fcvt.ll
  llvm/test/CodeGen/AArch64/fminimummaximum.ll
  llvm/test/CodeGen/AArch64/fminmax.ll
  llvm/test/CodeGen/AArch64/fpext.ll
  llvm/test/CodeGen/AArch64/fptrunc.ll
  llvm/test/CodeGen/AArch64/fsqrt.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/andn2.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/bswap.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/fmul.v2f16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fshl.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fshr.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2d.d16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2d.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.store.2d.d16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-select.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shuffle-vector.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-vector-args-gfx8-plus.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-xor.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/orn2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158063.551937.patch
Type: text/x-patch
Size: 230425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230821/7365740e/attachment-0001.bin>


More information about the llvm-commits mailing list