Received: from eggs.gnu.org ([140.186.70.92]:45346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QenpR-0000Sl-62 for qemu-devel@nongnu.org; Thu, 07 Jul 2011 08:37:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QenpM-0005U3-K1 for qemu-devel@nongnu.org; Thu, 07 Jul 2011 08:37:12 -0400 Received: from smtp.ispras.ru ([83.149.198.202]:51651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QenpM-0005T8-1r for qemu-devel@nongnu.org; Thu, 07 Jul 2011 08:37:08 -0400 Date: Thu, 7 Jul 2011 16:36:47 +0400 (MSD) From: Kirill Batuzov In-Reply-To: <4DF25812.2080102@twiddle.net> Message-ID: References: <1307616344-27161-1-git-send-email-batuzovk@ispras.ru> <1307616344-27161-3-git-send-email-batuzovk@ispras.ru> <4DF25812.2080102@twiddle.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH v2 2/6] Add copy and constant propagation. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org, zhur@ispras.ru On Fri, 10 Jun 2011, Richard Henderson wrote: > > + /* Do copy propagation */ > > + if (!(def->flags & (TCG_OPF_CALL_CLOBBER | TCG_OPF_SIDE_EFFECTS))) { > > Why are you suppressing copy propagation in this way? I see no reason for it. > This was suggested by Aurelien Jarno. I do not know how safe it is to propagate copies through such operations so I decided to be conservative. > > case INDEX_op_brcond_i64: > > #endif > > + memset(temps, 0, nb_temps * sizeof(struct tcg_temp_info)); > > Perhaps to pedantic, but we can do better in extended basic blocks. > A full flush of all temps is only needed at labels. > Not much better unfortunately. Globals got spilled at basic block end, temps just die. The only things we can keep are locals but I have not seen much of them in the intermediate representation. ---- Kirill Batuzov