From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKTX-0001Ag-Er for qemu-devel@nongnu.org; Wed, 04 Dec 2013 16:59:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoKTP-0003rD-1R for qemu-devel@nongnu.org; Wed, 04 Dec 2013 16:59:19 -0500 Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:61382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoKTO-0003r9-TO for qemu-devel@nongnu.org; Wed, 04 Dec 2013 16:59:10 -0500 Received: by mail-yh0-f51.google.com with SMTP id c41so10430721yho.10 for ; Wed, 04 Dec 2013 13:59:10 -0800 (PST) Sender: Richard Henderson Message-ID: <529FA5A5.80601@twiddle.net> Date: Thu, 05 Dec 2013 10:59:01 +1300 From: Richard Henderson MIME-Version: 1.0 References: <1386185609-25505-1-git-send-email-peter.maydell@linaro.org> <1386185609-25505-13-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1386185609-25505-13-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 12/12] target-arm: A64: add support for compare and branch imm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, Michael Matz , Alexander Graf , C Fontana , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu On 12/05/2013 08:33 AM, Peter Maydell wrote: > +static TCGv_i64 read_cpu_reg(DisasContext *s, int reg, int sf) > +{ > + TCGv_i64 v = new_tmp_a64_zero(s); > + if (reg != 31) { This is going to issue a garbage "movi tmp, 0" opcode for every non-XZR read. While the optimizer will remove that, it's only going to slow things down, and easily avoidable. Better to allocate the temporary and only perform the movi for reg == 31. r~