[PATCH] D33188: [X86][AVX512] Improve lowering of AVX512 compare intrinsics (remove redundant shift left+right instructions).

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 12:25:19 PDT 2017


zvi added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:5069
+// destination and accepts mask.
+static bool isMaskedZeroUpperBitsvXi1(unsigned int Opcode) {
+  switch (Opcode) {
----------------
If think you should check here for AND


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:5106
 
+  // If this node promotes - by concatenating zeroes - the type of the result
+  // of a node with instruction that zeroes all upper (irrelevant) bits of the
----------------
promotes -> widens ?


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:5109
+  // output register, mark this nodes as legal to enable replacing them with
+  // the v8i1 version of the previous instruction duting instruction selection.
+  SDValue Inserted = Op.getOperand(1);
----------------
*during


https://reviews.llvm.org/D33188





More information about the llvm-commits mailing list