From patchwork Mon Nov 18 10:45:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Enkovich X-Patchwork-Id: 292017 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C8B292C00C7 for ; Mon, 18 Nov 2013 21:46:54 +1100 (EST) 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=PKHBUOIy6NunSDhA6M7kb1DFE/dL4MOhIu5TUDNot5oQkCCmGYV7c sOChFzzeknG7rrOzerWPOypTZC8Tf8tzOHPwINzIdJ451oN40n41PXBRLkzh5ZuT sD61LhXcznFB2nWbaxFxZVdMuS99KLMpQI2c8YST4RfJE5ESEDNvpE= 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=c3HPHIzRCUaw8yjqsAKcjJrGB7E=; b=tkAPOyO3mPNyPnhGtoM3 7r3OLBtQbfO9yOSFA/fpB0k6ZqSRTicXbOYf0N29KYV7ROlxUVduty8x/loNv+ZT 9vKtYTvHFYiGI6zbYAhJwWI7sxI2Pm3UuI51J+vN3JfnDK3q+nf6rHFF8i5DnQuO Fn77ciDKpVppjqNrz/2ibN0= Received: (qmail 32198 invoked by alias); 18 Nov 2013 10:46:44 -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 32185 invoked by uid 89); 18 Nov 2013 10:46:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL, BAYES_50, FREEMAIL_FROM, RDNS_NONE, SPF_PASS, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-pa0-f53.google.com Received: from Unknown (HELO mail-pa0-f53.google.com) (209.85.220.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 18 Nov 2013 10:46:43 +0000 Received: by mail-pa0-f53.google.com with SMTP id hz1so3355402pad.26 for ; Mon, 18 Nov 2013 02:46:35 -0800 (PST) X-Received: by 10.68.217.129 with SMTP id oy1mr20188730pbc.23.1384771595210; Mon, 18 Nov 2013 02:46:35 -0800 (PST) Received: from msticlxl57.ims.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by mx.google.com with ESMTPSA id sy10sm25647346pac.15.2013.11.18.02.46.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 18 Nov 2013 02:46:34 -0800 (PST) Date: Mon, 18 Nov 2013 14:45:50 +0400 From: Ilya Enkovich To: gcc-patches@gcc.gnu.org Subject: [PATCH, MPX, 2/X] Pointers Checker [17/25] IPA SRA Message-ID: <20131118104550.GK21297@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi, Here is a patch remove bounded params from candidates for reduction. Thanks, Ilya --- 2013-11-15 Ilya Enkovich * tree-sra.c: Include tree-chkp.h. (find_param_candidates): Bounded param is not a candidate. diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index d97af13..eec2b6b 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -102,6 +102,7 @@ along with GCC; see the file COPYING3. If not see #include "gimple-pretty-print.h" #include "ipa-inline.h" #include "ipa-utils.h" +#include "tree-chkp.h" /* Enumeration of all aggregate reductions we can do. */ enum sra_mode { SRA_MODE_EARLY_IPA, /* early call regularization */ @@ -3667,7 +3668,9 @@ find_param_candidates (void) if (TREE_THIS_VOLATILE (parm) || TREE_ADDRESSABLE (parm) - || (!is_gimple_reg_type (type) && is_va_list_type (type))) + || (!is_gimple_reg_type (type) && is_va_list_type (type)) + || (chkp_function_instrumented_p (current_function_decl) + && chkp_type_has_pointer (type))) continue; if (is_unused_scalar_param (parm))