Skip to content

Commit 8a417b7

Browse files
committed
[X86] Fix typo in comment in X86FixupLEAs. NFC
1 parent 421d6cc commit 8a417b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86FixupLEAs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ static inline bool isInefficientLEAReg(unsigned Reg) {
330330
Reg == X86::R13D || Reg == X86::R13;
331331
}
332332

333-
/// Returns true if this LEA uses base an index registers, and the base register
334-
/// is known to be inefficient for the subtarget.
333+
/// Returns true if this LEA uses base and index registers, and the base
334+
/// register is known to be inefficient for the subtarget.
335335
// TODO: use a variant scheduling class to model the latency profile
336336
// of LEA instructions, and implement this logic as a scheduling predicate.
337337
static inline bool hasInefficientLEABaseReg(const MachineOperand &Base,

0 commit comments

Comments
 (0)