Allow targets to prefer TypeSplitVector over TypePromoteInteger when computing the...
authorJustin Holewinski <jholewinski@nvidia.com>
Thu, 29 Nov 2012 14:26:24 +0000 (14:26 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Thu, 29 Nov 2012 14:26:24 +0000 (14:26 +0000)
commit3d200255d5b93344c1ab0a5ba4b47a52cfa5893e
tree8b2469b4bddabff7cec81ed6a162701eded27e00
parent84af05e1ba3a97d98b76929df858edc7b8b0d252
Allow targets to prefer TypeSplitVector over TypePromoteInteger when computing the legalization method for vectors

For some targets, it is desirable to prefer scalarizing <N x i1> instead of promoting to a larger legal type, such as <N x i32>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168882 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/NVPTX/NVPTXISelLowering.h
test/CodeGen/NVPTX/vector-compare.ll [new file with mode: 0644]