[PATCH] D36651: [SelectionDAG] Teach the vector-types operand scalarizer about SETCC

Elad Cohen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 13 06:55:16 PDT 2017


eladcohen created this revision.

When v1i1 is legal (e.g. AVX512) the legalizer can reach
a case where a v1i1 SETCC with an illgeal vector type operand
wasn't scalarized (since v1i1 is legal) but its operands does
have to be scalarized. This used to assert because SETCC was
missing from the vector operand scalarizer.

      

This patch attemps to teach the legalizer to handle these cases
by scalazring the operands, converting the node into a scalar
SETCC node.

Fixes pr34177.


https://reviews.llvm.org/D36651

Files:
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  test/CodeGen/X86/pr34177.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36651.110872.patch
Type: text/x-patch
Size: 5662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170813/a09d0a4c/attachment.bin>


More information about the llvm-commits mailing list