summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-05-15 20:40:58 +0000
committerNate Begeman <natebegeman@mac.com>2008-05-15 20:40:58 +0000
commitf79f52282c03ac0aadb94132973ba03ac942699a (patch)
treee520e44663b8798ed1dd3c25553374ddfde666ba /llvm
parent30deeca4339a5835c7429592ebc91e10b9002579 (diff)
downloadbcm5719-llvm-f79f52282c03ac0aadb94132973ba03ac942699a.tar.gz
bcm5719-llvm-f79f52282c03ac0aadb94132973ba03ac942699a.zip
Actually scalarize the operand to BIT_CONVERT instead of asking someone to do
something with a v1 type. llvm-svn: 51160
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index e8caea2e491..155b1a33acc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -7110,7 +7110,8 @@ SDOperand SelectionDAGLegalize::ScalarizeVectorOp(SDOperand Op) {
assert(Result.getValueType() == NewVT);
break;
case ISD::BIT_CONVERT:
- Result = DAG.getNode(ISD::BIT_CONVERT, NewVT, Op.getOperand(0));
+ Result = DAG.getNode(ISD::BIT_CONVERT, NewVT,
+ ScalarizeVectorOp(Op.getOperand(0)));
break;
case ISD::SELECT:
Result = DAG.getNode(ISD::SELECT, NewVT, Op.getOperand(0),
OpenPOWER on IntegriCloud