+ CallReg2Jmp optimization

git-svn-id: trunk@34937 -
This commit is contained in:
florian 2016-11-20 18:00:27 +00:00
parent 3eef641833
commit e33b2920dc

View File

@ -696,6 +696,20 @@ Implementation
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:
begin
{ turn