mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Fix RA::verifyAssignment()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -210,13 +210,17 @@ namespace {
|
|||||||
void verifyAssignment() const {
|
void verifyAssignment() const {
|
||||||
for (Virt2PhysMap::const_iterator i = v2pMap_.begin(),
|
for (Virt2PhysMap::const_iterator i = v2pMap_.begin(),
|
||||||
e = v2pMap_.end(); i != e; ++i)
|
e = v2pMap_.end(); i != e; ++i)
|
||||||
for (Virt2PhysMap::const_iterator i2 = i; i2 != e; ++i2)
|
for (Virt2PhysMap::const_iterator i2 = next(i); i2 != e; ++i2)
|
||||||
if (mri_->areAliases(i->second, i2->second)) {
|
if (MRegisterInfo::isVirtualRegister(i->second) &&
|
||||||
|
(i->second == i2->second ||
|
||||||
|
mri_->areAliases(i->second, i2->second))) {
|
||||||
const LiveIntervals::Interval
|
const LiveIntervals::Interval
|
||||||
&in = li_->getInterval(i->second),
|
&in = li_->getInterval(i->second),
|
||||||
&in2 = li_->getInterval(i2->second);
|
&in2 = li_->getInterval(i2->second);
|
||||||
assert(!in.overlaps(in2) &&
|
if (in.overlaps(in2)) {
|
||||||
"overlapping intervals for same register!");
|
std::cerr << in << " overlaps " << in2 << '\n';
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user