From: Alkis Evlogimenos Date: Fri, 5 Dec 2003 10:32:01 +0000 (+0000) Subject: Sort live intervals by increasing start point. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=91ceae6d2060367a5212b15b26faa804ea0448a5;p=oota-llvm.git Sort live intervals by increasing start point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10289 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index eda717baeb1..ec15c0823e5 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(std::cerr, "\n"))); }