[PATCH] D152826: [AArch64] Improve shuffles of i1 vectors (WIP)

Ricardo Jesus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 09:22:11 PDT 2023


rjj created this revision.
rjj added reviewers: dmgreen, SjoerdMeijer.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
rjj requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If the operands of a shuffle are concatenations of i1 vectors and undef,
this patch tries to rewrite the operands without the concatenation by doing a
bitcast instead. This avoids BUILD_VECTORs during legalisation, which
ultimately leads to better codegen.

This is WIP because currently two tests are failing that need looking into, but
in the meantime I wanted to get your opinion @dmgreen  on the approach.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152826

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/aarch64-shuffle-of-i1s.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152826.530936.patch
Type: text/x-patch
Size: 8184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/1da57835/attachment.bin>


More information about the llvm-commits mailing list