From 91ceae6d2060367a5212b15b26faa804ea0448a5 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Fri, 5 Dec 2003 10:32:01 +0000 Subject: [PATCH] Sort live intervals by increasing start point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10289 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveIntervalAnalysis.cpp | 1 + 1 file changed, 1 insertion(+) 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"))); } -- 2.34.1