mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 15:28:00 +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);
|
||||
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;
|
||||
end;
|
||||
A_MOV:
|
||||
|
Loading…
Reference in New Issue
Block a user