[PATCH] D98059: [AArch64][GlobalISel] Form G_DUPLANE32 for <2 x s32> shufflevectors in lowering.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 5 10:19:37 PST 2021


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

For <2 x s32>, we can use G_DUPLANE32, but with a <4 x s32> source. To make it work, we can just widen the original source with a concat_vectors.

Doing this allows <2 x float> indexed fmul instruction selection patterns to fire, which gives a nice 0.3% code size saving on Bullet with -Os.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98059

Files:
  llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-shuffle-duplane.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-fmul-indexed.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98059.328574.patch
Type: text/x-patch
Size: 5325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210305/6c4b4166/attachment.bin>


More information about the llvm-commits mailing list