qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 10/50] tcg: Avoid loops against variable boun


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v6 10/50] tcg: Avoid loops against variable bounds
Date: Tue, 17 Oct 2017 21:30:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 10/17/2017 03:03 PM, Emilio G. Cota wrote:
> On Mon, Oct 16, 2017 at 10:25:29 -0700, Richard Henderson wrote:
>> From: Richard Henderson <address@hidden>
>>
>> Copy s->nb_globals or s->nb_temps to a local variable for the purposes
>> of iteration.  This should allow the compiler to use low-overhead
>> looping constructs on some hosts.
>>
>> Reviewed-by: Alex Bennée <address@hidden>
>> Signed-off-by: Richard Henderson <address@hidden>
> 
> Reviewed-by: Emilio G. Cota <address@hidden>
> 
> FWIW on a Skylake host I couldn't measure a difference. However, the
> generated code is indeed slightly different.

I wouldn't expect so.  Low-overhead loops are more of a ppc thing.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]