aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-02 18:00:38 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-02 18:00:38 +0000
commit82b4955f96035e4c29a2d477dbf3d8cf6dc1bf28 (patch)
tree9bb36f2b2658b9b40b97f4e05fee1dee98996322
parentb7a8f2cdaa3db15861c7f06238fcacc4b10b74f3 (diff)
We don't need to sort the added vector as unhandled intervals are
stored in a binary heap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16143 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 8736a23675..0204494fd6 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -515,7 +515,6 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur)
}
}
- std::sort(added.begin(), added.end(), less_ptr<LiveInterval>());
// merge added with unhandled
for (unsigned i = 0, e = added.size(); i != e; ++i)
unhandled_.push(added[i]);