Make the SelectionDAG verify that all the operands of BUILD_VECTOR have the same...
authorEli Friedman <eli.friedman@gmail.com>
Fri, 9 Sep 2011 21:04:06 +0000 (21:04 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 9 Sep 2011 21:04:06 +0000 (21:04 +0000)
commit9db817fd0ce0949d0358f5cedfd9ca5a9f1726dd
treef10649f16d0e014bdae8f391b2b700f420ba1bfc
parent8ddf6531b88937dec35bf2bb3a55245b1af9cbf5
Make the SelectionDAG verify that all the operands of BUILD_VECTOR have the same type.  Teach DAGCombiner::visitINSERT_VECTOR_ELT not to make invalid BUILD_VECTORs.  Fixes PR10897.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139407 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/ARM/2011-09-09-OddVectorDivision.ll [new file with mode: 0644]