Fix a DAGCombiner crash when folding binary vector operations with constant
authorBob Wilson <bob.wilson@apple.com>
Fri, 17 Dec 2010 23:06:49 +0000 (23:06 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 17 Dec 2010 23:06:49 +0000 (23:06 +0000)
commitd727343a407bd3056f93e96c60eee72725d458c8
tree2cd4d7c4aa4f40b747c4ac7dc817fbced82d880a
parent4c6b3d35bb1cbbdd4c9fa9744df0d1fa0e09216f
Fix a DAGCombiner crash when folding binary vector operations with constant
BUILD_VECTOR operands where the element type is not legal.  I had previously
changed this code to insert TRUNCATE operations, but that was just wrong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/vector-DAGCombine.ll