[PATCH] D156544: Add more efficient vector bitcast for v16i8 on AArch64.

Lawrence Benson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 07:45:14 PDT 2023


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

We previously split the vector into two halves and performed two vector reduce operations followed by bit shifting and bitwise or. Now, we use NEON's zip1 to concatenate
the halves in a smart way and then perform only a single vector reduce. This boosts performance quite a bit for this small routine, as vector reduce is a rather expensive 
intruction. Original discussion for this started in: https://reviews.llvm.org/D145301


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156544

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/vec-combine-compare-to-bitmask.ll
  llvm/test/CodeGen/AArch64/vec-combine-compare-truncate-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156544.545164.patch
Type: text/x-patch
Size: 4467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230728/ea36f40b/attachment.bin>


More information about the llvm-commits mailing list