[fpc-devel] More peephole

Florian Klämpfl florian at freepascal.org
Wed Jan 22 22:29:49 CET 2014


Am 22.01.2014 04:06, schrieb Martin Frb:
> On 21/01/2014 21:28, Florian Klämpfl wrote:
>> Can you post some example code? It might be worth to think about
>> improving this already in at the node level.
>>
> 
> While getting examples, another issue:
> 
> 
> with -O2 , -O3 or -O4
> 
> Note the
>     movl    %eax,%edx
>     movl    %edx,%eax
> 
> with -O1 it is
>     movl    %eax,-4(%ebp)
>     movl    -4(%ebp),%eax

Well, -O1 can be neglected ...




More information about the fpc-devel mailing list