[PATCH] D103274: [X86] AMD Zen 3 has fast per-lane variable shuffles

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 14:30:48 PDT 2021


lebedev.ri added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:36097
   // which is much simpler than any shuffle.
-  if (UnaryShuffle && MaskContainsZeros && AllowVariableMask &&
       isSequentialOrUndefOrZeroInRange(Mask, 0, NumMaskElts, 0) &&
----------------
This one is weird. I'm not sure why fast-ness of variable shuffles matters here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103274



More information about the llvm-commits mailing list