Re: [fpc-devel] Optimisation and memory alignment question

2021-02-28 Thread Florian Klämpfl via fpc-devel
Am 28.02.21 um 11:11 schrieb J. Gareth Moreton via fpc-devel: Hi everyone, So to get to the point, I've spotted another potential peephole optimisation specifically on x86_64:     movq    (%rdx),%rax     shrq    $32,%rax Is it acceptable to change this to the following?     movl    4(%rd

[fpc-devel] Optimisation and memory alignment question

2021-02-28 Thread J. Gareth Moreton via fpc-devel
Hi everyone, So to get to the point, I've spotted another potential peephole optimisation specifically on x86_64:     movq    (%rdx),%rax     shrq    $32,%rax Is it acceptable to change this to the following?     movl    4(%rdx),%eax Logically it's equivalent thanks to the guarantee that th