Teach the legalizer how to handle operands for VSELECT nodes
authorJustin Holewinski <jholewinski@nvidia.com>
Thu, 29 Nov 2012 14:26:28 +0000 (14:26 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Thu, 29 Nov 2012 14:26:28 +0000 (14:26 +0000)
commit0ac49bf846325c471908b39c70c25446cdb3f16f
treefa0749b6f0704a0f40ce939af975202ca96a8d3f
parentbc45119b4465f6045b88fbdaca8cb4780338b4f0
Teach the legalizer how to handle operands for VSELECT nodes

If we need to split the operand of a VSELECT, it must be the mask operand. We
split the entire VSELECT operand with EXTRACT_SUBVECTOR.

llvm-svn: 168883
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/NVPTX/vector-select.ll [new file with mode: 0644]