From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86709 invoked by alias); 18 Sep 2019 12:42:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 86701 invoked by uid 89); 18 Sep 2019 12:42:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_ASCII_DIVIDERS,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Sep 2019 12:42:37 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AF06BB69A for ; Wed, 18 Sep 2019 12:42:35 +0000 (UTC) Date: Wed, 18 Sep 2019 12:42:00 -0000 From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Remove dead code Message-ID: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2019-09/txt/msg01103.txt.bz2 This removes dead code from the vectorizer and makes a function static. Bootstrapped / tested on x86_64-unknown-linux-gnu, applied. Richard. 2019-09-18 Richard Biener * tree-vectorizer.h (get_initial_def_for_reduction): Remove. * tree-vect-loop.c (get_initial_def_for_reduction): Make static. (vect_create_epilog_for_reduction): Remove dead code. Index: gcc/tree-vect-loop.c =================================================================== --- gcc/tree-vect-loop.c (revision 275873) +++ gcc/tree-vect-loop.c (working copy) @@ -4203,7 +4203,7 @@ vect_model_induction_cost (stmt_vec_info A cost model should help decide between these two schemes. */ -tree +static tree get_initial_def_for_reduction (stmt_vec_info stmt_vinfo, tree init_val, tree *adjustment_def) { @@ -4585,7 +4585,6 @@ vect_create_epilog_for_reduction (vec