Received: from eggs.gnu.org ([208.118.235.92]:52514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9da8-0005FV-NX for qemu-devel@nongnu.org; Thu, 06 Sep 2012 11:01:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9dZx-0007Qr-NV for qemu-devel@nongnu.org; Thu, 06 Sep 2012 11:01:24 -0400 Received: from hall.aurel32.net ([88.191.126.93]:44020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9dZx-0007PU-GV for qemu-devel@nongnu.org; Thu, 06 Sep 2012 11:01:13 -0400 From: Aurelien Jarno Date: Thu, 6 Sep 2012 17:00:52 +0200 Message-Id: <1346943657-17256-4-git-send-email-aurelien@aurel32.net> In-Reply-To: <1346943657-17256-1-git-send-email-aurelien@aurel32.net> References: <1346943657-17256-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 3/8] tcg/optimize: simplify or/xor r, a, 0 cases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno or/xor r, a, 0 is equivalent to a mov r, a. Signed-off-by: Aurelien Jarno --- tcg/optimize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcg/optimize.c b/tcg/optimize.c index 63f970d..0db849e 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -331,6 +331,8 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr, CASE_OP_32_64(sar): CASE_OP_32_64(rotl): CASE_OP_32_64(rotr): + CASE_OP_32_64(or): + CASE_OP_32_64(xor): if (temps[args[1]].state == TCG_TEMP_CONST) { /* Proceed with possible constant folding. */ break; -- 1.7.10.4