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)
commit7f128ea00c5358729906a9b98f844e887a1c3d73
tree4f4e1f0e4817e64578d6cc2f0fac73f3a4efb935
parent3d200255d5b93344c1ab0a5ba4b47a52cfa5893e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168883 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
test/CodeGen/NVPTX/vector-select.ll [new file with mode: 0644]