From b38ee2e03b1b2b43e3bbece8e4f607aeca8d3058 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Thu, 15 May 2008 20:40:58 +0000 Subject: [PATCH] Actually scalarize the operand to BIT_CONVERT instead of asking someone to do something with a v1 type. llvm-svn: 51160 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index e8caea2e491..155b1a33acc 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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),