[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 8/9] tcg/optimize: prefer the "op a, a, b" form
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 8/9] tcg/optimize: prefer the "op a, a, b" form for commutative ops |
Date: |
Wed, 19 Sep 2012 14:49:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 |
On 09/19/2012 01:00 PM, Aurelien Jarno wrote:
> The "op a, a, b" form is better handled on non-RISC host than the "op
> a, b, a" form, so swap the arguments to this form when possible, and
> when b is not a constant.
>
> This reduces the number of generated instructions by a tiny bit.
>
> Signed-off-by: Aurelien Jarno <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
r~
- Re: [Qemu-devel] [PATCH 1/9] tcg/optimizer: remove TCG_TEMP_ANY, (continued)
- [Qemu-devel] [PATCH 7/9] tcg/optimize: further optimize brcond/setcond, Aurelien Jarno, 2012/09/19
- [Qemu-devel] [PATCH 8/9] tcg/optimize: prefer the "op a, a, b" form for commutative ops, Aurelien Jarno, 2012/09/19
- Re: [Qemu-devel] [PATCH 8/9] tcg/optimize: prefer the "op a, a, b" form for commutative ops,
Richard Henderson <=
- [Qemu-devel] [PATCH 3/9] tcg/optimizer: rework copy progagation, Aurelien Jarno, 2012/09/19
- [Qemu-devel] [PATCH 5/9] tcg/optimize: optimize "op r, a, a => mov r, a", Aurelien Jarno, 2012/09/19
- Re: [Qemu-devel] [PATCH 0/9] tcg/optimize: rework copy propagation, Laurent Desnogues, 2012/09/21