From patchwork Sun Dec 14 19:34:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 420902 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 894941400D5 for ; Mon, 15 Dec 2014 06:36:12 +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:from :to:cc:subject:date:message-id; q=dns; s=default; b=k+zcSeBTz3aj Lk73IMwHrdDHAJQ50EljMQsMIfgkfSg3llYKd4F0OPomMbnecxJskPeH15Xcu6Hw Lz1pMGzFsgEsDOCh1nTAIBRIC9I0FrxMl/RySPvhj6ryVNQ8Ug9L93MdWXPgJBP9 lKncRNySKFHFla4C6RahkExL4fR+v24= 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:from :to:cc:subject:date:message-id; s=default; bh=DV4EfsS5NnmdbVpd/+ VLcqrzbnI=; b=IQ2RjH5E5NSRVL4yO4Rxz5RTaEg9sEc5YgPx+UFBRPw5DyMNwM kmMhf4YatqsRK85Vx0J5TZ8pMbYu/b8azdvpcx6czrRSNU7dRiFxUc/2R4yQMLoZ 3zHdCS/XhpCbFOvT5DatTPt5pOuZYrmCfAV3FYpZXlG8cUHLkUgPJexts= Received: (qmail 22108 invoked by alias); 14 Dec 2014 19:35:54 -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 21855 invoked by uid 89); 14 Dec 2014 19:35:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: one.firstfloor.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (193.170.194.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 14 Dec 2014 19:35:49 +0000 Received: from basil.firstfloor.org (184-100-252-180.ptld.qwest.net [184.100.252.180]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by one.firstfloor.org (Postfix) with ESMTPSA id DF38986699; Sun, 14 Dec 2014 20:35:44 +0100 (CET) Received: by basil.firstfloor.org (Postfix, from userid 1000) id 3AD21A4E19; Sun, 14 Dec 2014 11:34:19 -0800 (PST) From: Andi Kleen To: gcc-patches@gcc.gnu.org Cc: Andi Kleen Subject: [PATCH] Remove dead code in omp-low.c Date: Sun, 14 Dec 2014 11:34:18 -0800 Message-Id: <1418585658-10812-1-git-send-email-andi@firstfloor.org> From: Andi Kleen Since the accelerator changes omp_expand_local is not used anymore. Remove the dead function and another function used by it. gcc/: 2014-12-14 Andi Kleen * omp-low.c (build_omp_regions_root): Remove dead function. (omp_expand_local): Dito. * omp-low.h: Dito. --- gcc/omp-low.c | 30 ------------------------------ gcc/omp-low.h | 1 - 2 files changed, 31 deletions(-) diff --git a/gcc/omp-low.c b/gcc/omp-low.c index a2e4737..908d280 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -8753,36 +8753,6 @@ build_omp_regions_1 (basic_block bb, struct omp_region *parent, build_omp_regions_1 (son, parent, single_tree); } -/* Builds the tree of OMP regions rooted at ROOT, storing it to - root_omp_region. */ - -static void -build_omp_regions_root (basic_block root) -{ - gcc_assert (root_omp_region == NULL); - build_omp_regions_1 (root, NULL, true); - gcc_assert (root_omp_region != NULL); -} - -/* Expands omp construct (and its subconstructs) starting in HEAD. */ - -void -omp_expand_local (basic_block head) -{ - build_omp_regions_root (head); - if (dump_file && (dump_flags & TDF_DETAILS)) - { - fprintf (dump_file, "\nOMP region tree\n\n"); - dump_omp_region (dump_file, root_omp_region, 0); - fprintf (dump_file, "\n"); - } - - remove_exit_barriers (root_omp_region); - expand_omp (root_omp_region); - - free_omp_regions (); -} - /* Scan the CFG and build a tree of OMP regions. Return the root of the OMP region tree. */ diff --git a/gcc/omp-low.h b/gcc/omp-low.h index ac587d0..718e707 100644 --- a/gcc/omp-low.h +++ b/gcc/omp-low.h @@ -23,7 +23,6 @@ along with GCC; see the file COPYING3. If not see struct omp_region; extern tree find_omp_clause (tree, enum omp_clause_code); -extern void omp_expand_local (basic_block); extern void free_omp_regions (void); extern tree omp_reduction_init (tree, tree); extern bool make_gimple_omp_edges (basic_block, struct omp_region **, int *);