Skip to content

Commit dad8c6a

Browse files
committed
[NFC] fix trivial typos in comments
llvm-svn: 350690
1 parent 17f10ab commit dad8c6a

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

llvm/lib/CodeGen/IfConversion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ bool IfConverter::IfConvertSimple(BBInfo &BBI, IfcvtKind Kind) {
14441444
Redefs.init(*TRI);
14451445

14461446
if (MRI->tracksLiveness()) {
1447-
// Initialize liveins to the first BB. These are potentiall redefined by
1447+
// Initialize liveins to the first BB. These are potentially redefined by
14481448
// predicated instructions.
14491449
Redefs.addLiveIns(CvtMBB);
14501450
Redefs.addLiveIns(NextMBB);
@@ -2148,7 +2148,7 @@ void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) {
21482148
// Calculate the edge probability for the edge from ToBBI.BB to Succ,
21492149
// which is a portion of the edge probability from FromMBB to Succ. The
21502150
// portion ratio is the edge probability from ToBBI.BB to FromMBB (if
2151-
// FromBBI is a successor of ToBBI.BB. See comment below for excepion).
2151+
// FromBBI is a successor of ToBBI.BB. See comment below for exception).
21522152
NewProb = MBPI->getEdgeProbability(&FromMBB, Succ);
21532153

21542154
// To2FromProb is 0 when FromMBB is not a successor of ToBBI.BB. This

llvm/lib/CodeGen/MachineBlockPlacement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class MachineBlockPlacement : public MachineFunctionPass {
316316
/// A type for a block filter set.
317317
using BlockFilterSet = SmallSetVector<const MachineBasicBlock *, 16>;
318318

319-
/// Pair struct containing basic block and taildup profitiability
319+
/// Pair struct containing basic block and taildup profitability
320320
struct BlockAndTailDupResult {
321321
MachineBasicBlock *BB;
322322
bool ShouldTailDup;

llvm/lib/CodeGen/MachinePipeliner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ void SwingSchedulerDAG::Circuits::createAdjacencyStructure(
15571557
}
15581558
}
15591559
}
1560-
// Add back-eges in the adjacency matrix for the output dependences.
1560+
// Add back-edges in the adjacency matrix for the output dependences.
15611561
for (auto &OD : OutputDeps)
15621562
if (!Added.test(OD.second)) {
15631563
AdjK[OD.first].push_back(OD.second);
@@ -2773,7 +2773,7 @@ void SwingSchedulerDAG::generateExistingPhis(
27732773
else if (PrologStage >= AccessStage + StageDiff + np &&
27742774
VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0)
27752775
PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal];
2776-
// Check if the Phi has already been scheduled, but the loop intruction
2776+
// Check if the Phi has already been scheduled, but the loop instruction
27772777
// is either another Phi, or doesn't occur in the loop.
27782778
else if (PrologStage >= AccessStage + StageDiff + np) {
27792779
// If the Phi references another Phi, we need to examine the other

llvm/lib/CodeGen/MachineScheduler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,13 +2460,13 @@ static unsigned computeRemLatency(SchedBoundary &CurrZone) {
24602460
}
24612461

24622462
/// Returns true if the current cycle plus remaning latency is greater than
2463-
/// the cirtical path in the scheduling region.
2463+
/// the critical path in the scheduling region.
24642464
bool GenericSchedulerBase::shouldReduceLatency(const CandPolicy &Policy,
24652465
SchedBoundary &CurrZone,
24662466
bool ComputeRemLatency,
24672467
unsigned &RemLatency) const {
24682468
// The current cycle is already greater than the critical path, so we are
2469-
// already latnecy limited and don't need to compute the remaining latency.
2469+
// already latency limited and don't need to compute the remaining latency.
24702470
if (CurrZone.getCurrCycle() > Rem.CriticalPath)
24712471
return true;
24722472

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
683683
// out the bottom of the function.
684684
} else if (MBB->succ_size() == LandingPadSuccs.size()) {
685685
// It's possible that the block legitimately ends with a noreturn
686-
// call or an unreachable, in which case it won't actuall fall
686+
// call or an unreachable, in which case it won't actually fall
687687
// out of the block.
688688
} else if (MBB->succ_size() != 1+LandingPadSuccs.size()) {
689689
report("MBB exits via unconditional fall-through but doesn't have "

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class RAGreedy : public MachineFunctionPass,
318318

319319
/// Track new eviction.
320320
/// The Evictor vreg has evicted the Evictee vreg from Physreg.
321-
/// \param PhysReg The phisical register Evictee was evicted from.
321+
/// \param PhysReg The physical register Evictee was evicted from.
322322
/// \param Evictor The evictor Vreg that evicted Evictee.
323323
/// \param Evictee The evictee Vreg.
324324
void addEviction(unsigned PhysReg, unsigned Evictor, unsigned Evictee) {

llvm/lib/CodeGen/RegisterCoalescer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ namespace {
176176
/// If one def has many copy like uses, and those copy uses are all
177177
/// rematerialized, the live interval update needed for those
178178
/// rematerializations will be delayed and done all at once instead
179-
/// of being done multiple times. This is to save compile cost becuase
179+
/// of being done multiple times. This is to save compile cost because
180180
/// live interval update is costly.
181181
void lateLiveIntervalUpdate();
182182

0 commit comments

Comments
 (0)