mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:29:30 +02:00
+ RCallReg2RJmp optimization
git-svn-id: trunk@38318 -
This commit is contained in:
parent
1d6e0743aa
commit
5b16a84de1
@ -701,6 +701,20 @@ Implementation
|
|||||||
asml.Remove(hp1);
|
asml.Remove(hp1);
|
||||||
hp1.Free;
|
hp1.Free;
|
||||||
|
|
||||||
|
result:=true;
|
||||||
|
end;
|
||||||
|
A_RCALL:
|
||||||
|
if (cs_opt_level4 in current_settings.optimizerswitches) and
|
||||||
|
GetNextInstruction(p,hp1) and
|
||||||
|
MatchInstruction(hp1,A_RET) then
|
||||||
|
begin
|
||||||
|
DebugMsg('Peephole RCallReg2RJmp performed', p);
|
||||||
|
|
||||||
|
taicpu(p).opcode:=A_RJMP;
|
||||||
|
|
||||||
|
asml.Remove(hp1);
|
||||||
|
hp1.Free;
|
||||||
|
|
||||||
result:=true;
|
result:=true;
|
||||||
end;
|
end;
|
||||||
A_MOV:
|
A_MOV:
|
||||||
|
Loading…
Reference in New Issue
Block a user