mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Remove verifyIntervals() since it doesn't actually work right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b4edbaaf9
commit
4de1fefd7c
@ -263,8 +263,6 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
DEBUG(printFreeRegs("\tfree registers", rc));
|
DEBUG(printFreeRegs("\tfree registers", rc));
|
||||||
}
|
}
|
||||||
|
|
||||||
//assert(verifyIntervals());
|
|
||||||
|
|
||||||
processActiveIntervals(i);
|
processActiveIntervals(i);
|
||||||
processInactiveIntervals(i);
|
processInactiveIntervals(i);
|
||||||
|
|
||||||
@ -404,56 +402,6 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
return true;
|
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)
|
void RA::processActiveIntervals(Intervals::const_iterator cur)
|
||||||
{
|
{
|
||||||
DEBUG(std::cerr << "\tprocessing active intervals:\n");
|
DEBUG(std::cerr << "\tprocessing active intervals:\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user