From 7a287da6cd995052069b10ba33da0f7d707338ef Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Thu, 2 Sep 2004 18:00:38 +0000 Subject: [PATCH] We don't need to sort the added vector as unhandled intervals are stored in a binary heap. llvm-svn: 16143 --- lib/CodeGen/RegAllocLinearScan.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 8736a236755..0204494fd65 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()); // merge added with unhandled for (unsigned i = 0, e = added.size(); i != e; ++i) unhandled_.push(added[i]);