[llvm] r337351 - [NFC] fix trivial typos in comments
Hiroshi Inoue via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 17 23:04:43 PDT 2018
Author: inouehrs
Date: Tue Jul 17 23:04:43 2018
New Revision: 337351
URL: http://llvm.org/viewvc/llvm-project?rev=337351&view=rev
Log:
[NFC] fix trivial typos in comments
Modified:
llvm/trunk/lib/Target/PowerPC/PPCExpandISEL.cpp
llvm/trunk/lib/Target/PowerPC/PPCReduceCRLogicals.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCExpandISEL.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCExpandISEL.cpp?rev=337351&r1=337350&r2=337351&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCExpandISEL.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCExpandISEL.cpp Tue Jul 17 23:04:43 2018
@@ -285,7 +285,7 @@ void PPCExpandISEL::handleSpecialCases(B
// Special case 1, all registers used by ISEL are the same one.
if (!IsADDIInstRequired && !IsORIInstRequired) {
- LLVM_DEBUG(dbgs() << "Remove redudant ISEL instruction.");
+ LLVM_DEBUG(dbgs() << "Remove redundant ISEL instruction.");
// FIXME: if the CR field used has no other uses, we could eliminate the
// instruction that defines it. This would have to be done manually
// since this pass runs too late to run DCE after it.
@@ -305,7 +305,7 @@ void PPCExpandISEL::handleSpecialCases(B
// thereby preventing this ISEL from being folded.
if (useSameRegister(TrueValue, FalseValue) && (BIL.size() == 1)) {
LLVM_DEBUG(
- dbgs() << "Fold the ISEL instruction to an unconditonal copy.");
+ dbgs() << "Fold the ISEL instruction to an unconditional copy.");
NumFolded++;
// Note: we're using both the TrueValue and FalseValue operands so as
// not to lose the kill flag if it is set on either of them.
Modified: llvm/trunk/lib/Target/PowerPC/PPCReduceCRLogicals.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCReduceCRLogicals.cpp?rev=337351&r1=337350&r2=337351&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCReduceCRLogicals.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCReduceCRLogicals.cpp Tue Jul 17 23:04:43 2018
@@ -67,7 +67,7 @@ static void updatePHIs(MachineBasicBlock
for (unsigned i = 2, e = MI.getNumOperands() + 1; i != e; i += 2) {
MachineOperand &MO = MI.getOperand(i);
if (MO.getMBB() == OrigMBB) {
- // Check if the instruction is actualy defined in NewMBB.
+ // Check if the instruction is actually defined in NewMBB.
if (MI.getOperand(i - 1).isReg()) {
MachineInstr *DefMI = MRI->getVRegDef(MI.getOperand(i - 1).getReg());
if (DefMI->getParent() == NewMBB ||
@@ -152,7 +152,7 @@ static bool splitMBB(BlockSplitInfo &BSI
if (ThisMBB->succ_size() != 2) {
LLVM_DEBUG(
dbgs() << "Don't know how to handle blocks that don't have exactly"
- << " two succesors.\n");
+ << " two successors.\n");
return false;
}
More information about the llvm-commits
mailing list