mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Remove unneeded check. An interval in active, by definition overlaps
with the current one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce50115006
commit
84dc5fb6ba
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user