mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:09:20 +02:00
* replace 'inc/dec orgreg' with 'inc/dec spilltemp' in trgcpu.do_spill_replace
git-svn-id: branches/z80@44552 -
This commit is contained in:
parent
a6cfaa996a
commit
e43834c5d0
@ -216,6 +216,17 @@ unit rgcpu;
|
||||
instr.loadref(1,spilltemp);
|
||||
result:=true;
|
||||
end;
|
||||
end
|
||||
{ Replace 'inc orgreg' with 'inc spilltemp'
|
||||
and 'dec orgreg' with 'dec spilltemp' }
|
||||
else if (opcode in [A_INC,A_DEC]) and (ops=1) and (oper[0]^.typ=top_reg) then
|
||||
begin
|
||||
if (getregtype(oper[0]^.reg)=regtype) and
|
||||
(get_alias(getsupreg(oper[0]^.reg))=orgreg) then
|
||||
begin
|
||||
instr.loadref(0,spilltemp);
|
||||
result:=true;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user