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 | 11c52c601a2ec05f2d1a5a551c09f1315835657f (patch) | |
tree | 0a6c183013344b459971fd69b4416628c161e72d /llvm/lib/CodeGen | |
parent | 184a4b83d801e13b83596f40194c34bdf73242eb (diff) | |
download | bcm5719-llvm-11c52c601a2ec05f2d1a5a551c09f1315835657f.tar.gz bcm5719-llvm-11c52c601a2ec05f2d1a5a551c09f1315835657f.zip |
Fix a typo and coding style of a previous commit. No functional change.
llvm-svn: 189526
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 47c332a5be4..1de11e9b1fa 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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); |