From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10539 invoked by alias); 1 Jul 2011 17:30:59 -0000 Received: (qmail 10531 invoked by uid 22791); 1 Jul 2011 17:30:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jul 2011 17:30:45 +0000 Received: (qmail 10798 invoked from network); 1 Jul 2011 17:30:44 -0000 Received: from unknown (HELO ?84.152.209.23?) (bernds@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Jul 2011 17:30:44 -0000 Message-ID: <4E0E043D.3080608@codesourcery.com> Date: Fri, 01 Jul 2011 17:30:00 -0000 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110505 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: GCC Patches Subject: [3/11] Remove some dead code References: <4E0E0310.60406@codesourcery.com> In-Reply-To: <4E0E0310.60406@codesourcery.com> Content-Type: multipart/mixed; boundary="------------080406040709010500070707" 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-07/txt/msg00067.txt.bz2 This is a multi-part message in MIME format. --------------080406040709010500070707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 152 A long time ago, this piece of code ended in a call to GEN_INT. Now that we're using gen_int_mode, we needn't do the sign extension ourselves. Bernd --------------080406040709010500070707 Content-Type: text/plain; name="03-deadcode.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="03-deadcode.diff" Content-length: 882 * simplify-rtx.c (simplify_ternary_operation): Remove dead code. Index: baseline-trunk/gcc/simplify-rtx.c =================================================================== --- baseline-trunk.orig/gcc/simplify-rtx.c +++ baseline-trunk/gcc/simplify-rtx.c @@ -4948,15 +4948,6 @@ simplify_ternary_operation (enum rtx_cod val |= ~ (((unsigned HOST_WIDE_INT) 1 << INTVAL (op1)) - 1); } - /* Clear the bits that don't belong in our mode, - unless they and our sign bit are all one. - So we get either a reasonable negative value or a reasonable - unsigned value for this mode. */ - if (width < HOST_BITS_PER_WIDE_INT - && ((val & ((unsigned HOST_WIDE_INT) (-1) << (width - 1))) - != ((unsigned HOST_WIDE_INT) (-1) << (width - 1)))) - val &= ((unsigned HOST_WIDE_INT) 1 << width) - 1; - return gen_int_mode (val, mode); } break; --------------080406040709010500070707--