[PATCH] D22814: [X86][SSE] Optimize the truncation of vector comparison results with PACKSS

Elena Demikhovsky via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 02:39:11 PDT 2016


delena added inline comments.

================
Comment at: lib/Target/X86/X86ISelLowering.cpp:29869
@@ +29868,3 @@
+  SDValue In = N->getOperand(0);
+  if (In.getOpcode() != ISD::SETCC || !In.getValueType().isSimple())
+    return SDValue();
----------------
It should be another function that says that all bits in each element all-ones or all-zeroes. It is not only compare. SIGN_EXTEND_IN_REG has the same effect, for example.


Repository:
  rL LLVM

https://reviews.llvm.org/D22814





More information about the llvm-commits mailing list