aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-05 10:32:01 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-05 10:32:01 +0000
commit91ceae6d2060367a5212b15b26faa804ea0448a5 (patch)
tree3f0d5fe6bff9ce96ece84c0be0a609cfd38fef7c /lib/CodeGen/LiveIntervalAnalysis.cpp
parent69546d5f840250455202e487ec42d8655d209775 (diff)
Sort live intervals by increasing start point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index eda717baeb..ec15c0823e 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -297,6 +297,7 @@ void LiveIntervals::computeIntervals()
}
}
+ std::sort(intervals_.begin(), intervals_.end(), StartPointComp());
DEBUG(std::copy(intervals_.begin(), intervals_.end(),
std::ostream_iterator<Interval>(std::cerr, "\n")));
}