[PATCH] D132374: [TTI] Add SK_Splice shuffle mask detection and X86 costs

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 07:10:18 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/IR/Instructions.cpp:2309
+    // Splice is sequential starting from StartIndex.
+    if (MaskEltVal != (StartIndex + I))
+      return false;
----------------
fhahn wrote:
> Do we also need to check if we are extracting exactly half the original elements here? I see `isSplice` checks the length isn't changed, but other calls of `isSpliceMask` don't seem to do it (in BasicTTI)
None of the static shuffle kind matches know the width of the input types - they assume they match Mask.size()


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132374



More information about the llvm-commits mailing list