From: Bob Wilson Date: Wed, 15 Jun 2011 06:04:34 +0000 (+0000) Subject: A minor simplification: no functional change. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7a10ab7d6f50b59580cc8ab1eb52d562e81f28d8;p=oota-llvm.git A minor simplification: no functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133047 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 358eb597ccd..faa86139424 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -5546,16 +5546,13 @@ static SDValue AddCombineToVPADDL(SDNode *N, SDValue N0, SDValue N1, // operands, where N is the size of the formed vector. // Each EXTRACT_VECTOR should have the same input vector and odd or even // index such that we have a pair wise add pattern. - SDNode *V = 0; - SDValue Vec; - unsigned nextIndex = 0; // Grab the vector that all EXTRACT_VECTOR nodes should be referencing. - if (N0->getOperand(0)->getOpcode() == ISD::EXTRACT_VECTOR_ELT) { - Vec = N0->getOperand(0)->getOperand(0); - V = Vec.getNode(); - } else + if (N0->getOperand(0)->getOpcode() != ISD::EXTRACT_VECTOR_ELT) return SDValue(); + SDValue Vec = N0->getOperand(0)->getOperand(0); + SDNode *V = Vec.getNode(); + unsigned nextIndex = 0; // For each operands to the ADD which are BUILD_VECTORs, // check to see if each of their operands are an EXTRACT_VECTOR with