summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-13 15:00:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-13 15:00:11 +0000
commitfd1cced726469e83915f428877a521ba737d35f3 (patch)
tree27ef47eb749345e536db82982e1bef7cd4ec4cda /lib/CodeGen/SplitKit.cpp
parentcb53632869dafa01d514378c810549a1e9e47aee (diff)
downloadllvm-fd1cced726469e83915f428877a521ba737d35f3.tar.gz
llvm-fd1cced726469e83915f428877a521ba737d35f3.tar.bz2
llvm-fd1cced726469e83915f428877a521ba737d35f3.tar.xz
Stop using dead function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r--lib/CodeGen/SplitKit.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp
index 73788f6ba0..35ef40ddd2 100644
--- a/lib/CodeGen/SplitKit.cpp
+++ b/lib/CodeGen/SplitKit.cpp
@@ -558,8 +558,6 @@ VNInfo *SplitEditor::defFromParent(unsigned RegIdx,
/// Create a new virtual register and live interval.
unsigned SplitEditor::openIntv() {
- assert(!OpenIdx && "Previous LI not closed before openIntv");
-
// Create the complement as index 0.
if (Edit->empty())
Edit->create(LIS, VRM);
@@ -696,13 +694,6 @@ void SplitEditor::overlapIntv(SlotIndex Start, SlotIndex End) {
DEBUG(dump());
}
-/// closeIntv - Indicate that we are done editing the currently open
-/// LiveInterval, and ranges can be trimmed.
-void SplitEditor::closeIntv() {
- assert(OpenIdx && "openIntv not called before closeIntv");
- OpenIdx = 0;
-}
-
/// transferSimpleValues - Transfer all simply defined values to the new live
/// ranges.
/// Values that were rematerialized or that have multiple defs are left alone.
@@ -846,7 +837,6 @@ void SplitEditor::deleteRematVictims() {
}
void SplitEditor::finish() {
- assert(OpenIdx == 0 && "Previous LI not closed before rewrite");
++NumFinished;
// At this point, the live intervals in Edit contain VNInfos corresponding to
@@ -948,7 +938,6 @@ void SplitEditor::splitSingleBlock(const SplitAnalysis::BlockInfo &BI) {
useIntv(SegStart, SegStop);
overlapIntv(SegStop, BI.LastUse);
}
- closeIntv();
}
/// splitSingleBlocks - Split CurLI into a separate live interval inside each