From e1c24c06f901621e72166e5398b8fbfc973852f0 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Thu, 22 Jan 2004 20:07:18 +0000 Subject: [PATCH] Remove unneeded check. An interval in active, by definition overlaps with the current one. llvm-svn: 10959 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 23c50cae8be1..5f1290d233cf 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -522,12 +522,9 @@ void RA::assignStackSlotAtInterval(IntervalPtrs::value_type cur) for (unsigned i = 0; i < MRegisterInfo::FirstVirtualRegister; ++i) regWeight[i] = 0.0F; - // for each interval in active that overlaps + // for each interval in active for (IntervalPtrs::const_iterator i = active_.begin(), e = active_.end(); i != e; ++i) { - if (!cur->overlaps(**i)) - continue; - unsigned reg = (*i)->reg; if (reg >= MRegisterInfo::FirstVirtualRegister) { reg = v2pMap_[reg];