diff options
author | Juergen Ributzka <juergen@apple.com> | 2013-08-28 22:33:58 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2013-08-28 22:33:58 +0000 |
commit | 2b884bcbce3ec76bd065d2dd9a6597f13e9fdd57 (patch) | |
tree | ac9a587230ccdefd26199f731bc5df461ceddc28 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | b70d79e7e93cbca738130a71c9431e104acd317b (diff) | |
download | external_llvm-2b884bcbce3ec76bd065d2dd9a6597f13e9fdd57.zip external_llvm-2b884bcbce3ec76bd065d2dd9a6597f13e9fdd57.tar.gz external_llvm-2b884bcbce3ec76bd065d2dd9a6597f13e9fdd57.tar.bz2 |
Fix a typo and coding style of a previous commit. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 47c332a..1de11e9 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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); |