From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4fzr-0004CO-KW for qemu-devel@nongnu.org; Wed, 18 Oct 2017 00:30:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4fzo-0008BL-Es for qemu-devel@nongnu.org; Wed, 18 Oct 2017 00:30:23 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:49603) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4fzo-0008A3-8f for qemu-devel@nongnu.org; Wed, 18 Oct 2017 00:30:20 -0400 Received: by mail-pf0-x234.google.com with SMTP id i5so2999652pfe.6 for ; Tue, 17 Oct 2017 21:30:18 -0700 (PDT) References: <20171016172609.23422-1-richard.henderson@linaro.org> <20171016172609.23422-11-richard.henderson@linaro.org> <20171017220322.GJ1345@flamenco> From: Richard Henderson Message-ID: <10093a86-e1e3-9712-2a31-474f64d05b69@linaro.org> Date: Tue, 17 Oct 2017 21:30:15 -0700 MIME-Version: 1.0 In-Reply-To: <20171017220322.GJ1345@flamenco> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v6 10/50] tcg: Avoid loops against variable bounds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" Cc: qemu-devel@nongnu.org, Richard Henderson 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 >> >> 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 >> Signed-off-by: Richard Henderson > > Reviewed-by: Emilio G. Cota > > 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~