Fixing register eviction.
This commit is contained in:
parent
5eeeee7093
commit
ac59b61851
|
@ -242,6 +242,8 @@ void X64Emitter::FindFreeRegs(
|
||||||
if (!free_regs) {
|
if (!free_regs) {
|
||||||
// Need to evict something.
|
// Need to evict something.
|
||||||
EvictStaleRegs();
|
EvictStaleRegs();
|
||||||
|
free_regs = avail_regs & ~reg_state_.live_regs;
|
||||||
|
XEASSERT(free_regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find the first available.
|
// Find the first available.
|
||||||
|
|
Loading…
Reference in New Issue