diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2011-06-15 06:04:34 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2011-06-15 06:04:34 +0000 |
| commit | 4b12a11f30b66d08cc54d3eb4f93d97c181f7f00 (patch) | |
| tree | f4df1a3a5e1983cec86be42c8eb048433aa95257 /llvm/lib | |
| parent | 634c12d23f690d4b1947154d7b4945bd0f6bfa4f (diff) | |
| download | bcm5719-llvm-4b12a11f30b66d08cc54d3eb4f93d97c181f7f00.tar.gz bcm5719-llvm-4b12a11f30b66d08cc54d3eb4f93d97c181f7f00.zip | |
A minor simplification: no functional change.
llvm-svn: 133047
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 358eb597ccd..faa86139424 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/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 |

