[PATCH][v3] GIMPLE store merging pass

Bernd Schmidt bschmidt@redhat.com
Wed Sep 7 13:32:00 GMT 2016



On 09/07/2016 10:19 AM, Richard Biener wrote:
> On Tue, 6 Sep 2016, Jakub Jelinek wrote:

>> If you want a 64-bit store, you'd need to merge the two, and that would be
>> even more expensive.  It is a matter of say:
>> 	movl $0x12345678, (%rsp)
>> 	movl $0x09abcdef, 4(%rsp)
>> vs.
>> 	movabsq $0x09abcdef12345678, %rax
>> 	movq %rax, (%rsp)
>> vs.
>> 	movl $0x09abcdef, %eax
>> 	salq $32, %rax
>> 	orq $0x12345678, %rax
>> 	movq $rax, (%rsp)
>
> vs.
>
>         movq $LC0, (%rsp)
>
> ?

Not the same. That moves the address of $LC0.


Bernd



More information about the Gcc-patches mailing list