diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-17 19:03:05 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-17 19:03:05 +0000 |
commit | 9d15fb3c10224b3164ea5c3dce680de1a95e78d4 (patch) | |
tree | d030be053550b17dc01d9615aa7172f74385ca32 /llvm/lib/Target/X86/X86OptimizeLEAs.cpp | |
parent | 39950b0f925b12349350f2f895d8ce34223da10a (diff) | |
download | bcm5719-llvm-9d15fb3c10224b3164ea5c3dce680de1a95e78d4.tar.gz bcm5719-llvm-9d15fb3c10224b3164ea5c3dce680de1a95e78d4.zip |
Fix spelling mistakes in X86 target comments. NFC.
Identified by Pedro Giffuni in PR27636.
llvm-svn: 287247
Diffstat (limited to 'llvm/lib/Target/X86/X86OptimizeLEAs.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86OptimizeLEAs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86OptimizeLEAs.cpp b/llvm/lib/Target/X86/X86OptimizeLEAs.cpp index 943f7530019..e1447006cd1 100644 --- a/llvm/lib/Target/X86/X86OptimizeLEAs.cpp +++ b/llvm/lib/Target/X86/X86OptimizeLEAs.cpp @@ -235,7 +235,7 @@ private: /// \brief Choose the best \p LEA instruction from the \p List to replace /// address calculation in \p MI instruction. Return the address displacement - /// and the distance between \p MI and the choosen \p BestLEA in + /// and the distance between \p MI and the chosen \p BestLEA in /// \p AddrDispShift and \p Dist. bool chooseBestLEA(const SmallVectorImpl<MachineInstr *> &List, const MachineInstr &MI, MachineInstr *&BestLEA, @@ -549,10 +549,10 @@ bool OptimizeLEAPass::removeRedundantLEAs(MemOpMap &LEAs) { MachineInstr &Last = **I2; int64_t AddrDispShift; - // LEAs should be in occurence order in the list, so we can freely + // LEAs should be in occurrence order in the list, so we can freely // replace later LEAs with earlier ones. assert(calcInstrDist(First, Last) > 0 && - "LEAs must be in occurence order in the list"); + "LEAs must be in occurrence order in the list"); // Check that the Last LEA instruction can be replaced by the First. if (!isReplaceable(First, Last, AddrDispShift)) { |