[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH] target-ppc: optimize cmp translation
From: |
Richard Henderson |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH] target-ppc: optimize cmp translation |
Date: |
Mon, 18 Dec 2017 11:01:02 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 12/16/2017 09:49 PM, Paolo Bonzini wrote:
> We know that only one bit (in addition to SO) is going to be set in
> the condition register, so do two movconds instead of three setconds,
> three shifts and two ORs.
>
> For ppc64-linux-user, the code size reduction is around 5% and the
> performance improvement slightly less than 10%. For softmmu, the
> improvement is around 5%.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> target/ppc/translate.c | 29 ++++++++++++-----------------
> 1 file changed, 12 insertions(+), 17 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~