[PATCH] D103498: [AArch64][GlobalISel] Use PackedVectorAllTypeList for G_SHUFFLE_VECTOR

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 1 17:29:27 PDT 2021


paquette created this revision.
paquette added reviewers: aemerson, jroelofs.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.
paquette requested review of this revision.
Herald added a project: LLVM.

We were missing a few types here which would cause us to fall back on some low-hanging fruit (e.g. v4s16)

Reimplement the `legal` rule for G_SHUFFLE_VECTOR using existing LegalityPredicate stuff, and add a helper that checks if two type indices are the same type.


https://reviews.llvm.org/D103498

Files:
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
  llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-shuffle-vector.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-shuffle-vector.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103498.349144.patch
Type: text/x-patch
Size: 13954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210602/dfe9b04e/attachment.bin>


More information about the llvm-commits mailing list