LiveDebugValues: Fix typos and indentation

This commit is contained in:
Matt Arsenault 2020-09-22 11:46:41 -04:00
parent 0266c2c37b
commit 56e077581a

View File

@ -22,7 +22,7 @@
/// and the VarLocBasedLDV class is an implementation that explicitly tracks /// and the VarLocBasedLDV class is an implementation that explicitly tracks
/// locations, using the VarLoc class. /// locations, using the VarLoc class.
/// ///
/// The cannonical "available expressions" problem doesn't have expression /// The canonical "available expressions" problem doesn't have expression
/// clobbering, instead when a variable is re-assigned, any expressions using /// clobbering, instead when a variable is re-assigned, any expressions using
/// that variable get invalidated. LiveDebugValues can map onto "available /// that variable get invalidated. LiveDebugValues can map onto "available
/// expressions" by having every register represented by a variable, which is /// expressions" by having every register represented by a variable, which is
@ -826,7 +826,7 @@ VarLocBasedLDV::VarLocBasedLDV() { }
VarLocBasedLDV::~VarLocBasedLDV() { } VarLocBasedLDV::~VarLocBasedLDV() { }
/// Erase a variable from the set of open ranges, and additionally erase any /// Erase a variable from the set of open ranges, and additionally erase any
/// fragments that may overlap it. If the VarLoc is a buckup location, erase /// fragments that may overlap it. If the VarLoc is a backup location, erase
/// the variable from the EntryValuesBackupVars set, indicating we should stop /// the variable from the EntryValuesBackupVars set, indicating we should stop
/// tracking its backup entry location. Otherwise, if the VarLoc is primary /// tracking its backup entry location. Otherwise, if the VarLoc is primary
/// location, erase the variable from the Vars set. /// location, erase the variable from the Vars set.
@ -1837,8 +1837,8 @@ bool VarLocBasedLDV::ExtendRanges(MachineFunction &MF, TargetPassConfig *TPC) {
MachineBasicBlock &First_MBB = *(MF.begin()); MachineBasicBlock &First_MBB = *(MF.begin());
for (auto &MI : First_MBB) { for (auto &MI : First_MBB) {
collectRegDefs(MI, DefinedRegs, TRI); collectRegDefs(MI, DefinedRegs, TRI);
if (MI.isDebugValue()) if (MI.isDebugValue())
recordEntryValue(MI, DefinedRegs, OpenRanges, VarLocIDs); recordEntryValue(MI, DefinedRegs, OpenRanges, VarLocIDs);
} }
// Initialize per-block structures and scan for fragment overlaps. // Initialize per-block structures and scan for fragment overlaps.