mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 04:46:52 +00:00
If the register allocator ran out of registers, just abort for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48175 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e6da15e54
commit
a3413804f4
@ -685,8 +685,14 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur)
|
||||
}
|
||||
|
||||
// All registers must have inf weight. Just grab one!
|
||||
if (!minReg)
|
||||
if (!minReg) {
|
||||
if (active_.size() == 0) {
|
||||
// FIXME: All the registers are occupied by fixed intervals.
|
||||
cerr << "Register allocator ran out of registers!\n";
|
||||
abort();
|
||||
}
|
||||
minReg = *RC->allocation_order_begin(*mf_);
|
||||
}
|
||||
}
|
||||
|
||||
DOUT << "\t\tregister with min weight: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user