[PATCH] D29489: Optimize SETCC + VSEL of incompatible or illegal types

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 05:14:22 PST 2017


jonpa added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:2870
+
+  if (N->getOpcode() != ISD::VSELECT || Cond->getOpcode() != ISD::SETCC)
+    return SDValue();
----------------
efriedma wrote:
> I still don't like that you're special-casing SETCC here... it isn't the only source of i1 vectors.
If there is anything that really should be handled and commited at the same as the SETCC, please give more details.



https://reviews.llvm.org/D29489





More information about the llvm-commits mailing list