[PATCH] D121137: [AArch64] Lower 3 and 4 sources buildvectors to TBL

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 10:19:15 PST 2022


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, sdesmalen, samtebbs, jaykang10, fhahn.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

The default expansion for buildvectors is to extract each element and insert them into a new vector. That involves a lot of copying to/from the GPR registers. TLB3 and TLB4 can be relatively slow instructions with the mask needing to be loaded from a constant pool, but they are at least better than all the moves to/from GPRs.


https://reviews.llvm.org/D121137

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
  llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll
  llvm/test/CodeGen/AArch64/neon-extracttruncate.ll
  llvm/test/CodeGen/AArch64/shuffle-tbl34.ll
  llvm/test/CodeGen/AArch64/tbl-loops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121137.413537.patch
Type: text/x-patch
Size: 55622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220307/0b97d9c8/attachment.bin>


More information about the llvm-commits mailing list