[fpc-devel] optimizing the peephole optimizer?
Ralf Quint
freedos.la at gmail.com
Wed Jan 22 01:46:11 CET 2014
On 1/21/2014 4:23 PM, Martin Frb wrote:
Sorry, but those two code blocks are NOT identical as you claim.
At least in the snippets below, GetNextInstruction is called at least
twice in the OLD snippet, not only once as your supposed NEW snippet
does. It is called once for either the ffo1 or the ffo2 case and again,
for the the ffo3 case which is executed after either ffo1 or ffo2.
>
> NEW:
>
> If GetNextInstruction(p, hp1) then Begin
> if ffo1 then
> else
> if ffo2 then
> ;
> if ffo3 then
> end;
>
> OLD:
>
> if ffo1 and
> GetNextInstruction(p, hp1) then
> else
> if ffo2 and
> GetNextInstruction(p, hp1) then
> ;
> if ffo3 and
> GetNextInstruction(p, hp1) then
>
>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
More information about the fpc-devel
mailing list