Fix infinite recursion for when extract_vector_elt is legal. Unfortunately no public...
authorChristopher Lamb <christopher.lamb@gmail.com>
Thu, 26 Jul 2007 03:33:13 +0000 (03:33 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Thu, 26 Jul 2007 03:33:13 +0000 (03:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40510 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 5bcee351ea75d2afef0f94035f871076ececc830..25f032041d9f6baca3e154c8dd2253805aff0188 100644 (file)
@@ -3605,7 +3605,7 @@ SDOperand SelectionDAGLegalize::ExpandEXTRACT_VECTOR_ELT(SDOperand Op) {
     if (isTypeLegal(TVT)) {
       Vec = LegalizeOp(Vec);
       Op = DAG.UpdateNodeOperands(Op, Vec, Idx);
-      Op = LegalizeOp(Op);
+      return Op;
     }
     break;
   case TargetLowering::Expand: