From patchwork Wed Nov 26 12:41:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Enkovich X-Patchwork-Id: 415111 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7105F140145 for ; Wed, 26 Nov 2014 23:42:02 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=vRG5wrdYA1u7Zy6BMv+qx1WLbAaOMIljKvmAQ4iAQ3aNFRC7bnh85 qGnqGdCdrJ3pTD/7BQ+CxaGtEqvLY8xyZdSTe12+JdjkBJzcScV6AbpAb4KjAQim xEpjfyy7aXj6pWxBfyrXBQ9qw016oawzO4440D9ypEhcFilQT5izOI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=4ZZ6+3/2A6+3CASY/wAJRcgIR8g=; b=TZGFJ6gB4aZGhd0ACUYp L6zNSlx/Dn6Z4exg7mGBOlV4jtCMiG96vFLzZoUyg8KEVT45zrOQFWXqWB/PhDsx /IKcMQhdaABqzTnl+xPfJFoUhZuFOvxxo3ntVK5ICyTpRGXQXE7xhKAnWA7t51Zn FcntsrLJ0T0pcqsSVyTZELg= Received: (qmail 15356 invoked by alias); 26 Nov 2014 12:41:55 -0000 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 Received: (qmail 15345 invoked by uid 89); 26 Nov 2014 12:41:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f173.google.com Received: from mail-pd0-f173.google.com (HELO mail-pd0-f173.google.com) (209.85.192.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 26 Nov 2014 12:41:53 +0000 Received: by mail-pd0-f173.google.com with SMTP id ft15so2756855pdb.4 for ; Wed, 26 Nov 2014 04:41:52 -0800 (PST) X-Received: by 10.66.150.164 with SMTP id uj4mr53159550pab.14.1417005711853; Wed, 26 Nov 2014 04:41:51 -0800 (PST) Received: from msticlxl57.ims.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by mx.google.com with ESMTPSA id ra4sm4286333pab.33.2014.11.26.04.41.50 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Nov 2014 04:41:51 -0800 (PST) Date: Wed, 26 Nov 2014 15:41:46 +0300 From: Ilya Enkovich To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR bootstrap/63995 Message-ID: <20141126124146.GC40854@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi, This patch makes optimization for bounds lifetime reduction to ignore debug stetments. This fixes stage2 and stage3 comparision for instrumented boostrap. OK for trunk? Thanks, Ilya --- 2014-11-26 Ilya Enkovich PR bootstrap/63995 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore debug statement when searching for a new position for bounds load/creation statement. diff --git a/gcc/tree-chkp-opt.c b/gcc/tree-chkp-opt.c index ff390d7..92e0694 100644 --- a/gcc/tree-chkp-opt.c +++ b/gcc/tree-chkp-opt.c @@ -1175,6 +1175,9 @@ chkp_reduce_bounds_lifetime (void) FOR_EACH_IMM_USE_STMT (use_stmt, use_iter, op) { + if (is_gimple_debug (use_stmt)) + continue; + if (dom_bb && dominated_by_p (CDI_DOMINATORS, dom_bb, gimple_bb (use_stmt)))