From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TES90-0004yv-7d for qemu-devel@nongnu.org; Wed, 19 Sep 2012 17:49:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TES8z-00071p-5H for qemu-devel@nongnu.org; Wed, 19 Sep 2012 17:49:18 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:50531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TES8y-00071c-Ut for qemu-devel@nongnu.org; Wed, 19 Sep 2012 17:49:17 -0400 Received: by pbbrp12 with SMTP id rp12so3450503pbb.4 for ; Wed, 19 Sep 2012 14:49:16 -0700 (PDT) Sender: Richard Henderson Message-ID: <505A3DDA.6070404@twiddle.net> Date: Wed, 19 Sep 2012 14:49:14 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1348084823-18277-1-git-send-email-aurelien@aurel32.net> <1348084823-18277-9-git-send-email-aurelien@aurel32.net> In-Reply-To: <1348084823-18277-9-git-send-email-aurelien@aurel32.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 8/9] tcg/optimize: prefer the "op a, a, b" form for commutative ops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org On 09/19/2012 01:00 PM, Aurelien Jarno wrote: > The "op a, a, b" form is better handled on non-RISC host than the "op > a, b, a" form, so swap the arguments to this form when possible, and > when b is not a constant. > > This reduces the number of generated instructions by a tiny bit. > > Signed-off-by: Aurelien Jarno Reviewed-by: Richard Henderson r~