[PATCH] D83789: [X86][SSE] Attempt to match OP(SHUFFLE(X,Y),SHUFFLE(X,Y)) -> SHUFFLE(HOP(X,Y))

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 11:47:09 PDT 2020


spatel added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:44454
+  // or non-AVX2 with integer types (which will split anyhow).
+  if (!Subtarget.hasAVX2() && !(!Subtarget.hasAVX2() && VT.isInteger()) &&
+      (isLaneCrossingShuffleMask(128, VT.getScalarSizeInBits(), LMask) ||
----------------
Reduce negative logic?
 // Avoid 128-bit lane crossing if this is pre-AVX2 and FP (integer will be split).
 if (!Subtarget.hasAVX2 && VT.isFloatingPoint() && ...)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83789





More information about the llvm-commits mailing list