From patchwork Fri Jul 1 17:30:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 102932 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id DEA14B6F62 for ; Sat, 2 Jul 2011 03:31:00 +1000 (EST) 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 19:30:37 +0200 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> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * 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;