From patchwork Thu Sep 20 09:54:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 185365 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 6EB502C0079 for ; Thu, 20 Sep 2012 19:54:55 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1348739696; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=JtudBbTd2lMaKv/D4WgMqoGxI0g=; b=opi9a7lk4YOfA+I wTX4oXY5rArovvM9hit1kc6JeXyOl647zTOKhasJA8MUCNx+KakfGphpaaeYQKSu KIz3eWAYr0bVHAeYtC/rGE8eeg4ZEbeRLPIigqTvpDtk+JD2w9qEuDMdfXSLYzFI wDlSNLgw6H/44tGBGYS+1F0TkA6g= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=OPU1qpE3IXFpd+SbDHsJYnfMMU6Q1hEvfiXoag2XvcIAlZs+Jv7mEnCZ2Yetc1 raObi5F0T8ZB882tTy8EN1x/TcKh4G2xFaHBdYneAVUWDUYNSvPbYrguDrk7FTpi LNS1J0TN3I7hrKwJ16jLOhDVfg2/h/oknUilEctNnG3oE=; Received: (qmail 7882 invoked by alias); 20 Sep 2012 09:54:49 -0000 Received: (qmail 7872 invoked by uid 22791); 20 Sep 2012 09:54:48 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS, TW_TM 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; Thu, 20 Sep 2012 09:54:30 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8K9sTfx028903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 20 Sep 2012 05:54:29 -0400 Received: from redhat.com (ovpn-116-80.ams2.redhat.com [10.36.116.80]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8K9sMEM027621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 20 Sep 2012 05:54:29 -0400 Date: Thu, 20 Sep 2012 11:54:22 +0200 From: Marek Polacek To: GCC Patches Subject: [PATCH] Merge identical cases Message-ID: <20120920095422.GS1265@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 In tree-ssa-operands.c in get_expr_operands we have two identical cases, for SSA_NAME and {VAR,PARM,RESULT}_DECL. If that isn't intentional (maybe it's clearer to split _*NAME and *_DECL--the compiler will merge them anyway), we can merge those two cases. Regtested/bootstrapped on x86_64. 2012-09-20 Marek Polacek * tree-ssa-operands.c (get_expr_operands): Merge identical cases. Marek --- gcc/tree-ssa-operands.c.mp 2012-09-20 11:22:40.364588965 +0200 +++ gcc/tree-ssa-operands.c 2012-09-20 11:29:40.178904905 +0200 @@ -1,5 +1,6 @@ /* SSA operands management for trees. Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + 2011, 2012 Free Software Foundation, Inc. This file is part of GCC. @@ -841,9 +842,6 @@ get_expr_operands (gimple stmt, tree *ex return; case SSA_NAME: - add_stmt_operand (expr_p, stmt, flags); - return; - case VAR_DECL: case PARM_DECL: case RESULT_DECL: