[llvm-commits] [llvm] r133047 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Bob Wilson bob.wilson at apple.com
Tue Jun 14 23:04:34 PDT 2011


Author: bwilson
Date: Wed Jun 15 01:04:34 2011
New Revision: 133047

URL: http://llvm.org/viewvc/llvm-project?rev=133047&view=rev
Log:
A minor simplification: no functional change.

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=133047&r1=133046&r2=133047&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Wed Jun 15 01:04:34 2011
@@ -5546,16 +5546,13 @@
   // 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





More information about the llvm-commits mailing list