[PATCH] D141791: [Thumb2][MVE] Recognise shuffle truncation patterns suitable for ARMISD::MVETRUNC

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 06:12:51 PST 2023


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/Thumb2/mve-vld4.ll:288
   %s3 = shufflevector <16 x i16> %l1, <16 x i16> undef, <4 x i32> <i32 2, i32 6, i32 10, i32 14>
   %s4 = shufflevector <16 x i16> %l1, <16 x i16> undef, <4 x i32> <i32 3, i32 7, i32 11, i32 15>
   %a1 = add <4 x i16> %s1, %s2
----------------
I think if we supported trunc from wider elements (in this case vXi64 to vXi16) we'd be able to catch all of these - but the patch currently only handles truncation from double-width element types.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141791/new/

https://reviews.llvm.org/D141791



More information about the llvm-commits mailing list