|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v1 4/5] tcg/optimize: fold constant test in tcg_opt_gen_mov |
Date: | Thu, 04 Jun 2015 15:06:07 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 06/04/2015 02:44 PM, Aurelien Jarno wrote:
On 2015-06-04 14:07, Richard Henderson wrote:I think you should check for copies first, and only then do the TEMP_CONST check. That way we get to remove an op.If the state of a temp is TCG_TEMP_CONST, it can't be a copy as its state should be TCG_TEMP_COPY for that.
Ah, true. I'd forgotten how that copy ring was represented. The existing patch is fine, if you prefer. r~
[Prev in Thread] | Current Thread | [Next in Thread] |