From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwCrN-0001J9-EF for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwCrH-0000bO-Eq for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:00:45 -0400 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:48658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwCrH-0000bA-7q for qemu-devel@nongnu.org; Sun, 15 Jun 2014 12:00:39 -0400 Received: by mail-pb0-f51.google.com with SMTP id rp16so3642957pbb.10 for ; Sun, 15 Jun 2014 09:00:37 -0700 (PDT) Received: from pike.twiddle.home (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id zn9sm54554740pac.31.2014.06.15.09.00.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jun 2014 09:00:36 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sun, 15 Jun 2014 09:00:33 -0700 Message-Id: <1402848033-5389-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH] tcg/optimize: Don't special case TCG_OPF_CALL_CLOBBER List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org With the "old" ldst ops we didn't know the real width of the result of the load, but with the "new" ldst ops we do. Signed-off-by: Richard Henderson --- tcg/optimize.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 16cebbe..34ae3c2 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -911,12 +911,11 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr, break; } - /* 32-bit ops (non 64-bit ops and non load/store ops) generate - 32-bit results. For the result is zero test below, we can - ignore high bits, but for further optimizations we need to - record that the high bits contain garbage. */ + /* 32-bit ops generate 32-bit results. For the result is zero test + below, we can ignore high bits, but for further optimizations we + need to record that the high bits contain garbage. */ partmask = mask; - if (!(def->flags & (TCG_OPF_CALL_CLOBBER | TCG_OPF_64BIT))) { + if (!(def->flags & TCG_OPF_64BIT)) { mask |= ~(tcg_target_ulong)0xffffffffu; partmask &= 0xffffffffu; affected &= 0xffffffffu; -- 1.9.3