mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Don't look for empty live ranges in the unions.
Empty live ranges represent undef and still get allocated, but they won't appear in LiveIntervalUnions. Patch by Patrik Hägglund! llvm-svn: 156685
This commit is contained in:
parent
bc52a1662b
commit
aff911c34c
@ -69,11 +69,14 @@ void RegAllocBase::verify() {
|
||||
for (LiveIntervals::iterator liItr = LIS->begin(), liEnd = LIS->end();
|
||||
liItr != liEnd; ++liItr) {
|
||||
unsigned reg = liItr->first;
|
||||
LiveInterval* li = liItr->second;
|
||||
if (TargetRegisterInfo::isPhysicalRegister(reg)) continue;
|
||||
if (!VRM->hasPhys(reg)) continue; // spilled?
|
||||
if (li->empty()) continue; // unionVRegs will only be filled if li is
|
||||
// non-empty
|
||||
unsigned PhysReg = VRM->getPhys(reg);
|
||||
if (!unionVRegs[PhysReg].test(reg)) {
|
||||
dbgs() << "LiveVirtReg " << reg << " not in union " <<
|
||||
dbgs() << "LiveVirtReg " << PrintReg(reg, TRI) << " not in union " <<
|
||||
TRI->getName(PhysReg) << "\n";
|
||||
llvm_unreachable("unallocated live vreg");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user