mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-21 05:58:59 +02:00
[dynarmic] exclude %rbp from regalloc
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
8f770618d2
commit
bc46b957d6
1 changed files with 2 additions and 1 deletions
|
|
@ -417,7 +417,8 @@ HostLoc RegAlloc::SelectARegister(std::bitset<32> desired_locations) const noexc
|
||||||
// While R13 and R14 are technically available, we avoid allocating for them
|
// While R13 and R14 are technically available, we avoid allocating for them
|
||||||
// at all costs, because theoretically skipping them is better than spilling
|
// at all costs, because theoretically skipping them is better than spilling
|
||||||
// all over the place - i also fixes bugs with high reg pressure
|
// all over the place - i also fixes bugs with high reg pressure
|
||||||
} else if (i >= HostLoc::R13 && i <= HostLoc::R15) {
|
// %rbp must not be trashed, so skip it as well
|
||||||
|
} else if (i == HostLoc::RBP || (i >= HostLoc::R13 && i <= HostLoc::R15)) {
|
||||||
// skip, do not touch
|
// skip, do not touch
|
||||||
// Intel recommends to reuse registers as soon as they're overwritable (DO NOT SPILL)
|
// Intel recommends to reuse registers as soon as they're overwritable (DO NOT SPILL)
|
||||||
} else if (loc_info.IsEmpty()) {
|
} else if (loc_info.IsEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue