* Use a register alias while handling reg deallocs in trgobj.instr_spill_register()

to be in sync with commit b96057ad.
This commit is contained in:
Yuriy Sydorov 2021-09-09 16:32:55 +03:00
parent ba9a8ab069
commit 61cf121533

View File

@ -2820,7 +2820,7 @@ unit rgobj;
belong to the previous instruction and not the current instruction }
if (tai_regalloc(loadpos).instr=instr) and
(tai_regalloc(loadpos).ratype=ra_dealloc) then
live_registers.add(getsupreg(tai_regalloc(loadpos).reg));
live_registers.add(get_alias(getsupreg(tai_regalloc(loadpos).reg)));
loadpos:=tai(loadpos.previous);
end;
loadpos:=tai(loadpos.next);