On Fri, Jul 6, 2012 at 5:24 PM, Andi Kleen wrote:
> Uros Bizjak writes:
>> Sometimes, gcc generates:
>>
>> leaq(%rbx,%rax), %rax
>>
>> that is in fact equivalent (modulo flags reg clobber) to:
>>
>> addq%rbx, %rax
>>
>> Attached patch adds additional peephole2 patterns that convert LEA t
Uros Bizjak writes:
> Hello!
>
> Sometimes, gcc generates:
>
> leaq(%rbx,%rax), %rax
>
> that is in fact equivalent (modulo flags reg clobber) to:
>
> addq%rbx, %rax
>
> Attached patch adds additional peephole2 patterns that convert LEA to
> ADD when second operand of PLUS RTX matches out
Hello!
Sometimes, gcc generates:
leaq(%rbx,%rax), %rax
that is in fact equivalent (modulo flags reg clobber) to:
addq%rbx, %rax
Attached patch adds additional peephole2 patterns that convert LEA to
ADD when second operand of PLUS RTX matches output operand.
2012-07-06 Uros Bizjak