mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 03:51:39 +02:00
+ CallReg2Jmp optimization
git-svn-id: trunk@34937 -
This commit is contained in:
parent
3eef641833
commit
e33b2920dc
@ -696,6 +696,20 @@ Implementation
|
|||||||
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
A_CALL:
|
||||||
|
if (cs_opt_level4 in current_settings.optimizerswitches) and
|
||||||
|
GetNextInstruction(p,hp1) and
|
||||||
|
MatchInstruction(hp1,A_RET) then
|
||||||
|
begin
|
||||||
|
DebugMsg('Peephole CallReg2Jmp performed', p);
|
||||||
|
|
||||||
|
taicpu(p).opcode:=A_JMP;
|
||||||
|
|
||||||
|
asml.Remove(hp1);
|
||||||
|
hp1.Free;
|
||||||
|
|
||||||
|
result:=true;
|
||||||
|
end;
|
||||||
A_MOV:
|
A_MOV:
|
||||||
begin
|
begin
|
||||||
{ turn
|
{ turn
|
||||||
|
Loading…
Reference in New Issue
Block a user