Remove unneeded check. An interval in active, by definition overlaps

with the current one.

llvm-svn: 10959
This commit is contained in:
Alkis Evlogimenos 2004-01-22 20:07:18 +00:00
parent 4716d76d22
commit e1c24c06f9
1 changed files with 1 additions and 4 deletions

View File

@ -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];