When scalarizing a vector BITCAST, check whether the operand has vector
authorDan Gohman <gohman@apple.com>
Mon, 11 May 2009 18:30:42 +0000 (18:30 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 11 May 2009 18:30:42 +0000 (18:30 +0000)
commit4e3fdf2c0fc58af9b3b52924708a6d162a52ba5f
tree390fc25c74076bdd1d05ab4219c24af6f57abee7
parent0d9bb68d6d8a8a3ac07a2262b8062d88cba80ff4
When scalarizing a vector BITCAST, check whether the operand has vector
type, rather than assume that it does. If the operand is not vector, it
shouldn't be run through ScalarizeVectorOp. This fixes one of the
testcases in PR3886.

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