From patchwork Fri Jun 25 14:20:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 56913 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 03E5BB6F15 for ; Sat, 26 Jun 2010 00:20:52 +1000 (EST) Received: (qmail 30027 invoked by alias); 25 Jun 2010 14:20:50 -0000 Received: (qmail 30014 invoked by uid 22791); 25 Jun 2010 14:20:49 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Jun 2010 14:20:45 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 25 Jun 2010 07:20:07 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by fmsmga002.fm.intel.com with ESMTP; 25 Jun 2010 07:20:32 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id A0CC3201C6; Fri, 25 Jun 2010 07:20:43 -0700 (PDT) Date: Fri, 25 Jun 2010 07:20:43 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: PR rtl-optimization/44326: NONDEBUG_INSN_P should be used in implicit-zee.c Message-ID: <20100625142043.GA25783@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) 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 Hi, When searching removable zero extends, there is no need to exam debug insns. Tested on Linux/x86-64. OK to install? Thanks. H.J. --- 2010-06-25 H.J. Lu PR rtl-optimization/44326 * implicit-zee.c (find_removable_zero_extends): Replace INSN_P with NONDEBUG_INSN_P. diff --git a/gcc/implicit-zee.c b/gcc/implicit-zee.c index 3344d7f..46029cd 100644 --- a/gcc/implicit-zee.c +++ b/gcc/implicit-zee.c @@ -858,7 +858,7 @@ find_removable_zero_extends (void) { FOR_BB_INSNS (curr_block, curr_insn) { - if (!INSN_P (curr_insn)) + if (!NONDEBUG_INSN_P (curr_insn)) continue; type = for_each_rtx (&PATTERN (curr_insn),