qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 06/10] tcg-aarch64: Hoist common argument loadsi


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 06/10] tcg-aarch64: Hoist common argument loadsin tcg_out_opp
Date: Wed, 05 Mar 2014 06:53:21 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 03/05/2014 04:14 AM, Alex Bennée wrote:
>> > +    /* Hoist the loads of the most common arguments.  */
>> > +    TCGArg a0 = args[0];
>> > +    TCGArg a1 = args[1];
>> > +    TCGArg a2 = args[2];
>> > +    int c2 = const_args[2];
>> > +
> The code certainly looks a lot cleaner but I'm not sure what this gains
> us. Surely the compiler should have done all this for us?

The compiler will only hoist stuff that's used on all following paths, not
stuff that's used on most following paths.

It also gains us variables in which we can manipulate the arguments before we
pass them off.  E.g. sign-extending 32-bit constants before entering the 64-bit
path.


r~



reply via email to

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