From ec8eee2d3a402dd001daae3865bc5c10b41c323e Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Wed, 29 Apr 2009 22:47:44 +0000 Subject: Fix infinite recursion in the C++ code which handles movddup by making it unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70425 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/SelectionDAG') diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f772f16..efa62be 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3946,8 +3946,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) { MVT TVT = MVT::getVectorVT(EVT, NumElems); if (TLI.isTypeLegal(TVT)) { // Turn this into a bit convert of the vector input. - Result = DAG.getNode(ISD::BIT_CONVERT, dl, Node->getValueType(0), - LegalizeOp(Node->getOperand(0))); + Tmp1 = LegalizeOp(Node->getOperand(0)); + Result = DAG.getNode(ISD::BIT_CONVERT, dl, Node->getValueType(0), Tmp1); break; } else if (NumElems == 1) { // Turn this into a bit convert of the scalar input. -- cgit v1.1