summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-16 18:55:32 +0000
committerMatthias Braun <matze@braunis.de>2015-07-16 18:55:32 +0000
commit7f5ae19e803d3a2faba71b17cde925a43a602a33 (patch)
tree3a9ebe8bf2ec492fe4505c59b44d49e1086aa2fe /llvm
parentfb8e2d22fb21f35c6b2a2ddc35e652a9c99a2b00 (diff)
downloadbcm5719-llvm-7f5ae19e803d3a2faba71b17cde925a43a602a33.tar.gz
bcm5719-llvm-7f5ae19e803d3a2faba71b17cde925a43a602a33.zip
Do not duplicate method name in comment, remove duplicate comment
llvm-svn: 242430
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h13
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp3
2 files changed, 6 insertions, 10 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
index 9673f80e085..70c3b8d5772 100644
--- a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -147,13 +147,12 @@ extern cl::opt<bool> UseSegmentSetForPhysRegs;
LiveInterval::Segment addSegmentToEndOfBlock(unsigned reg,
MachineInstr* startInst);
- /// 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.
- /// Dead PHIDef values are marked as unused.
- /// New dead machine instructions are added to the dead vector.
- /// Return true if the interval may have been separated into multiple
- /// connected components.
+ /// 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.
+ /// Dead PHIDef values are marked as unused. New dead machine instructions
+ /// are added to the dead vector. Returns true if the interval may have been
+ /// separated into multiple connected components.
bool shrinkToUses(LiveInterval *li,
SmallVectorImpl<MachineInstr*> *dead = nullptr);
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index c00b010e763..ee7c1d30315 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -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,
SmallVectorImpl<MachineInstr*> *dead) {
DEBUG(dbgs() << "Shrink: " << *li << '\n');
OpenPOWER on IntegriCloud