Fix a typo and coding style of a previous commit. No functional change.
authorJuergen Ributzka <juergen@apple.com>
Wed, 28 Aug 2013 22:33:58 +0000 (22:33 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 28 Aug 2013 22:33:58 +0000 (22:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 47c332a5be49df5149185a71069a627cc6081acc..1de11e9b1fa293d3bae3d5b6933947e9fdb195c2 100644 (file)
@@ -7892,13 +7892,12 @@ struct BaseIndexOffset {
     }
 
     // Inside a loop the current BASE pointer is calculated using an ADD and a
-    // MUL insruction. In this case Ptr is the actual BASE pointer.
+    // MUL instruction. In this case Ptr is the actual BASE pointer.
     // (i64 add (i64 %array_ptr)
     //          (i64 mul (i64 %induction_var)
     //                   (i64 %element_size)))
-    if (Ptr->getOperand(1)->getOpcode() == ISD::MUL) {
+    if (Ptr->getOperand(1)->getOpcode() == ISD::MUL)
       return BaseIndexOffset(Ptr, SDValue(), 0, IsIndexSignExt);
-    }
 
     // Look at Base + Index + Offset cases.
     SDValue Base = Ptr->getOperand(0);