Skip to content

Commit d934599

Browse files
committed
LiveDebugValues: Fix typos and indentation
1 parent a66fca4 commit d934599

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/// and the VarLocBasedLDV class is an implementation that explicitly tracks
2323
/// locations, using the VarLoc class.
2424
///
25-
/// The cannonical "available expressions" problem doesn't have expression
25+
/// The canonical "available expressions" problem doesn't have expression
2626
/// clobbering, instead when a variable is re-assigned, any expressions using
2727
/// that variable get invalidated. LiveDebugValues can map onto "available
2828
/// expressions" by having every register represented by a variable, which is
@@ -826,7 +826,7 @@ VarLocBasedLDV::VarLocBasedLDV() { }
826826
VarLocBasedLDV::~VarLocBasedLDV() { }
827827

828828
/// Erase a variable from the set of open ranges, and additionally erase any
829-
/// fragments that may overlap it. If the VarLoc is a buckup location, erase
829+
/// fragments that may overlap it. If the VarLoc is a backup location, erase
830830
/// the variable from the EntryValuesBackupVars set, indicating we should stop
831831
/// tracking its backup entry location. Otherwise, if the VarLoc is primary
832832
/// location, erase the variable from the Vars set.
@@ -1837,8 +1837,8 @@ bool VarLocBasedLDV::ExtendRanges(MachineFunction &MF, TargetPassConfig *TPC) {
18371837
MachineBasicBlock &First_MBB = *(MF.begin());
18381838
for (auto &MI : First_MBB) {
18391839
collectRegDefs(MI, DefinedRegs, TRI);
1840-
if (MI.isDebugValue())
1841-
recordEntryValue(MI, DefinedRegs, OpenRanges, VarLocIDs);
1840+
if (MI.isDebugValue())
1841+
recordEntryValue(MI, DefinedRegs, OpenRanges, VarLocIDs);
18421842
}
18431843

18441844
// Initialize per-block structures and scan for fragment overlaps.

0 commit comments

Comments
 (0)