1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Remove verifyIntervals() since it doesn't actually work right now.

llvm-svn: 10570
This commit is contained in:
Alkis Evlogimenos 2003-12-21 20:41:26 +00:00
parent 4401d0a7a3
commit 7062ccbc85

View File

@ -263,8 +263,6 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
DEBUG(printFreeRegs("\tfree registers", rc));
}
//assert(verifyIntervals());
processActiveIntervals(i);
processInactiveIntervals(i);
@ -404,56 +402,6 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
return true;
}
bool RA::verifyIntervals()
{
std::set<unsigned> assignedRegisters;
for (IntervalPtrs::iterator i = active_.begin(); i != active_.end(); ++i) {
if ((*i)->reg >= MRegisterInfo::FirstVirtualRegister) {
unsigned reg = v2pMap_.find((*i)->reg)->second;
bool inserted = assignedRegisters.insert(reg).second;
assert(inserted && "registers in active list conflict");
}
}
for (IntervalPtrs::iterator i = inactive_.begin(); i != inactive_.end();
++i) {
if ((*i)->reg >= MRegisterInfo::FirstVirtualRegister) {
unsigned reg = v2pMap_.find((*i)->reg)->second;
bool inserted = assignedRegisters.insert(reg).second;
assert(inserted && "registers in inactive list conflict");
}
}
for (IntervalPtrs::iterator i = active_.begin(); i != active_.end(); ++i) {
unsigned reg = (*i)->reg;
if (reg >= MRegisterInfo::FirstVirtualRegister) {
reg = v2pMap_.find((*i)->reg)->second;
}
for (const unsigned* as = mri_->getAliasSet(reg); *as; ++as) {
assert(assignedRegisters.find(*as) == assignedRegisters.end() &&
"registers in active list alias each other");
}
}
for (IntervalPtrs::iterator i = inactive_.begin(); i != inactive_.end();
++i) {
unsigned reg = (*i)->reg;
if (reg >= MRegisterInfo::FirstVirtualRegister) {
reg = v2pMap_.find((*i)->reg)->second;
}
for (const unsigned* as = mri_->getAliasSet(reg); *as; ++as) {
assert(assignedRegisters.find(*as) == assignedRegisters.end() &&
"registers in inactive list alias each other");
}
}
return true;
}
void RA::processActiveIntervals(Intervals::const_iterator cur)
{
DEBUG(std::cerr << "\tprocessing active intervals:\n");