From patchwork Sat Mar 23 23:35:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 230354 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id F2C702C009B for ; Sun, 24 Mar 2013 10:35:46 +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=mJjTl2t61RI6g+nXH0hyC8TT/HWs8R1PKUOrWgZFz2z+Cw3ArOZIx +raq43wRGl6zpalETaryw9stMJ7BW4Yh2AwLX5hvjw4PKgru1DOB8zOrL9hwiwdX KweRScOgM9WozYd/twqIfloF44fVc18xHCmp/zUB6b7liUFUsp+D0Y= 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=EfnjXtvaeRt9fjZjigiRnm66HwE=; b=RTn9kLJ/La8zBRnMe+KT ayK43npDVAkF4yU338YvX1I6CjmwhNFGh1maPDAPL4UKOEIkm0klIVl1gyCEfQdx 66/RbdX1R3cUv9uqJBSsXK2zVxWbHFGmJUA89MNuXjjdAwCzJ5AvV27ArwxtKkcv QqNjfnaogCdGHt/vjf4UwBE= Received: (qmail 20274 invoked by alias); 23 Mar 2013 23:35:36 -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 20255 invoked by uid 89); 23 Mar 2013 23:35:25 -0000 X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 23 Mar 2013 23:35:21 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C37FEA51D9 for ; Sun, 24 Mar 2013 00:35:18 +0100 (CET) Date: Sun, 24 Mar 2013 00:35:18 +0100 From: Martin Jambor To: GCC Patches Subject: [PATCH] Remove the PR 55334 IPA-CP hack Message-ID: <20130323233518.GD16552@virgil.suse> Mail-Followup-To: GCC Patches MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi, stage 1 is open so I would like to remove the PR 55334 hack as we discussed in February so that there is incentive to handle restrict qualifiers better when inlining and doing IPA-CP. Thus I'll commit the following rollback in the course of the next week (unless someone objects but well, it's really a rollback of my previous patch). We can continue to track the issue as PR 55334. Let's hope I won't be adding this very same hunk again in stage 3 ;-) Martin 2013-02-07 Martin Jambor PR tree-optimization/55334 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to restricted pointers to arrays. Index: src/gcc/ipa-cp.c =================================================================== --- src.orig/gcc/ipa-cp.c 2013-02-22 19:01:20.000000000 +0100 +++ src/gcc/ipa-cp.c 2013-02-22 19:03:34.000000000 +0100 @@ -730,22 +730,6 @@ initialize_node_lattices (struct cgraph_ cgraph_node_name (node), node->uid, disable ? "BOTTOM" : "VARIABLE"); } - if (!disable) - for (i = 0; i < ipa_get_param_count (info) ; i++) - { - struct ipcp_param_lattices *plats = ipa_get_parm_lattices (info, i); - tree t = TREE_TYPE (ipa_get_param(info, i)); - - if (POINTER_TYPE_P (t) && TYPE_RESTRICT (t) - && TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE) - { - set_lattice_to_bottom (&plats->itself); - if (dump_file && (dump_flags & TDF_DETAILS) - && !node->alias && !node->thunk.thunk_p) - fprintf (dump_file, "Going to ignore param %i of of %s/%i.\n", - i, cgraph_node_name (node), node->uid); - } - } for (ie = node->indirect_calls; ie; ie = ie->next_callee) if (ie->indirect_info->polymorphic)