Avoid creating BUILD_VECTOR of all zero elements of "non-normalized" type (e.g. v8i16...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 10 Mar 2008 07:19:13 +0000 (07:19 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 10 Mar 2008 07:19:13 +0000 (07:19 +0000)
commitf79e60649a5edea03bdccf8521d77c15cbb33af4
treeec61ba44f6cbfaaba814a8a2ab3ab859e8c906ac
parent8d88dbcbae38ba4e6d7bd43dd499a13bf091999d
Avoid creating BUILD_VECTOR of all zero elements of "non-normalized" type (e.g. v8i16 on x86) after legalizer. Instruction selection does not expect to see them. In all likelihood this can only be an issue in a bugpoint reduced test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48136 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/vec_zero-2.ll [new file with mode: 0644]