[PATCH] D47025: [X86] Directly legalize v16i16/v8i16 vselect to vXi8 vselect to use VPBLENDVB

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 15:15:34 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:15036
+  case MVT::v16i16: {
+    // Bitcast everything to the vXi8 type and use a vXi8 vselect.
+    MVT CastVT = MVT::getVectorVT(MVT::i8, VT.getVectorNumElements() * 2);
----------------
Its not clear without the context - is there anything to check that numSignBits(Cond) == 16?


https://reviews.llvm.org/D47025





More information about the llvm-commits mailing list