From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19255 invoked by alias); 26 Sep 2011 21:45:12 -0000 Received: (qmail 19243 invoked by uid 22791); 26 Sep 2011 21:45:11 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Sep 2011 21:44:51 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8QLibFA019716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Sep 2011 17:44:37 -0400 Received: from anchor.twiddle.net (vpn-234-132.phx2.redhat.com [10.3.234.132]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8QLiabi007709; Mon, 26 Sep 2011 17:44:37 -0400 Message-ID: <4E80F244.2000506@redhat.com> Date: Mon, 26 Sep 2011 23:11:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Jakub Jelinek CC: Richard Guenther , Eric Botcazou , gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: Re: [PATCH] Optimize in RTL vector AND { -1, -1, ... }, IOR { -1, -1, ... } and XOR { -1, -1, ... } (take 2) References: <20110926083144.GE2687@tyan-ft48-01.lab.bos.redhat.com> <20110926145550.GG2687@tyan-ft48-01.lab.bos.redhat.com> In-Reply-To: <20110926145550.GG2687@tyan-ft48-01.lab.bos.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg01654.txt.bz2 On 09/26/2011 07:55 AM, Jakub Jelinek wrote: > * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE > from 3 x MAX_MACHINE_MODE. > (CONSTM1_RTX): Define. > * emit-rtl.c (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE > from 3 x MAX_MACHINE_MODE. > (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are > CONSTM1_RTX. > (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and > MODE_VECTOR_INT modes. > * simplify-rtx.c (simplify_binary_operation_1) : > Optimize if one operand is CONSTM1_RTX. > * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x > into mask | x. Ok. r~