From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFzHe-0005yA-5V for qemu-devel@nongnu.org; Fri, 17 Jul 2015 02:38:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFzHb-0004ao-0R for qemu-devel@nongnu.org; Fri, 17 Jul 2015 02:38:10 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:37522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFzHa-0004ag-PU for qemu-devel@nongnu.org; Fri, 17 Jul 2015 02:38:06 -0400 Received: by wibud3 with SMTP id ud3so34251861wib.0 for ; Thu, 16 Jul 2015 23:38:06 -0700 (PDT) Sender: Richard Henderson References: <1436958199-5181-1-git-send-email-aurelien@aurel32.net> <1436958199-5181-9-git-send-email-aurelien@aurel32.net> From: Richard Henderson Message-ID: <55A8A2CB.70001@twiddle.net> Date: Fri, 17 Jul 2015 07:38:03 +0100 MIME-Version: 1.0 In-Reply-To: <1436958199-5181-9-git-send-email-aurelien@aurel32.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 8/9] tcg/optimize: do not simplify size changing moves List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , qemu-devel@nongnu.org Cc: Paolo Bonzini On 07/15/2015 12:03 PM, Aurelien Jarno wrote: > Now that we have real size changing ops, we don't need to marked high > bits of the destination as garbage. The goal of the optimizer is to > predict the value of the temps (and not of the registers) and do > simplifications when possible. The problem there is therefore not the > fact that those bits are not counted as garbage, but that a size > changing op is replaced by a move. > > This patch is basically a revert of 24666baf, including the changes that > have been made since then. > > Cc: Paolo Bonzini > Cc: Richard Henderson > Signed-off-by: Aurelien Jarno What we're missing here is whether the omitted size changing op is extu or exts. Mask should be extended to match. Which means keeping most of this code. r~