mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-06 14:38:17 +01:00
BackendX64/RegAlloc: Correct UseDefRegsiter behaviour for last use
This commit is contained in:
parent
b4aa01ccf4
commit
2b025183a2
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ Gen::X64Reg RegAlloc::UseDefRegister(IR::Inst* use_inst, IR::Inst* def_inst, Hos
|
||||||
if (IsLastUse(use_inst)) {
|
if (IsLastUse(use_inst)) {
|
||||||
HostLoc current_location = *ValueLocation(use_inst);
|
HostLoc current_location = *ValueLocation(use_inst);
|
||||||
auto& loc_info = LocInfo(current_location);
|
auto& loc_info = LocInfo(current_location);
|
||||||
if (!loc_info.IsIdle()) {
|
if (loc_info.IsIdle()) {
|
||||||
loc_info.is_being_used = true;
|
loc_info.is_being_used = true;
|
||||||
loc_info.def = def_inst;
|
loc_info.def = def_inst;
|
||||||
DEBUG_ASSERT(loc_info.IsUseDef());
|
DEBUG_ASSERT(loc_info.IsUseDef());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue