Do not duplicate method name in comment, remove duplicate comment

llvm-svn: 242430
This commit is contained in:
Matthias Braun 2015-07-16 18:55:32 +00:00
parent fb8e2d22fb
commit 7f5ae19e80
2 changed files with 6 additions and 10 deletions

View File

@ -147,13 +147,12 @@ extern cl::opt<bool> UseSegmentSetForPhysRegs;
LiveInterval::Segment addSegmentToEndOfBlock(unsigned reg, LiveInterval::Segment addSegmentToEndOfBlock(unsigned reg,
MachineInstr* startInst); MachineInstr* startInst);
/// shrinkToUses - After removing some uses of a register, shrink its live /// After removing some uses of a register, shrink its live range to just
/// range to just the remaining uses. This method does not compute reaching /// the remaining uses. This method does not compute reaching defs for new
/// defs for new uses, and it doesn't remove dead defs. /// uses, and it doesn't remove dead defs.
/// Dead PHIDef values are marked as unused. /// Dead PHIDef values are marked as unused. New dead machine instructions
/// New dead machine instructions are added to the dead vector. /// are added to the dead vector. Returns true if the interval may have been
/// Return true if the interval may have been separated into multiple /// separated into multiple connected components.
/// connected components.
bool shrinkToUses(LiveInterval *li, bool shrinkToUses(LiveInterval *li,
SmallVectorImpl<MachineInstr*> *dead = nullptr); SmallVectorImpl<MachineInstr*> *dead = nullptr);

View File

@ -396,9 +396,6 @@ static void extendSegmentsToUses(LiveRange &LR, const SlotIndexes &Indexes,
} }
} }
/// shrinkToUses - After removing some uses of a register, shrink its live
/// range to just the remaining uses. This method does not compute reaching
/// defs for new uses, and it doesn't remove dead defs.
bool LiveIntervals::shrinkToUses(LiveInterval *li, bool LiveIntervals::shrinkToUses(LiveInterval *li,
SmallVectorImpl<MachineInstr*> *dead) { SmallVectorImpl<MachineInstr*> *dead) {
DEBUG(dbgs() << "Shrink: " << *li << '\n'); DEBUG(dbgs() << "Shrink: " << *li << '\n');