[llvm] r189526 - Fix a typo and coding style of a previous commit. No functional change.

Juergen Ributzka juergen at apple.com
Wed Aug 28 15:33:58 PDT 2013


Author: ributzka
Date: Wed Aug 28 17:33:58 2013
New Revision: 189526

URL: http://llvm.org/viewvc/llvm-project?rev=189526&view=rev
Log:
Fix a typo and coding style of a previous commit. No functional change.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=189526&r1=189525&r2=189526&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Aug 28 17:33:58 2013
@@ -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);





More information about the llvm-commits mailing list