From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 703C538708A8 for ; Tue, 9 Jun 2020 14:01:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 703C538708A8 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rguenther@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 131B1AB7D for ; Tue, 9 Jun 2020 14:02:00 +0000 (UTC) Date: Tue, 9 Jun 2020 16:01:56 +0200 (CEST) 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-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2020 14:01:58 -0000 This removes dead code that was left over from the reduction vectorization refactoring last year. Bootstrapped / tested on x86_64-unknown-linux-gnu, applied. Richard. 2020-06-09 Richard Biener * tree-vect-stmts.c (vect_transform_stmt): Remove dead code. --- gcc/tree-vect-stmts.c | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index b24b0fe4304..61adf7d7fa4 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -11186,12 +11186,6 @@ vect_transform_stmt (vec_info *vinfo, gcc_assert (slp_node || !PURE_SLP_STMT (stmt_info)); stmt_vec_info old_vec_stmt_info = STMT_VINFO_VEC_STMT (stmt_info); - loop_vec_info loop_vinfo = dyn_cast (vinfo); - bool nested_p = (loop_vinfo - && nested_in_vect_loop_p - (LOOP_VINFO_LOOP (loop_vinfo), stmt_info)); - - gimple *stmt = stmt_info->stmt; switch (STMT_VINFO_TYPE (stmt_info)) { case type_demotion_vec_info_type: @@ -11266,13 +11260,11 @@ vect_transform_stmt (vec_info *vinfo, case call_vec_info_type: done = vectorizable_call (vinfo, stmt_info, gsi, &vec_stmt, slp_node, NULL); - stmt = gsi_stmt (*gsi); break; case call_simd_clone_vec_info_type: done = vectorizable_simd_clone_call (vinfo, stmt_info, gsi, &vec_stmt, slp_node, NULL); - stmt = gsi_stmt (*gsi); break; case reduc_vec_info_type: @@ -11310,41 +11302,6 @@ vect_transform_stmt (vec_info *vinfo, gcc_assert (!vec_stmt && STMT_VINFO_VEC_STMT (stmt_info) == old_vec_stmt_info); - /* Handle inner-loop stmts whose DEF is used in the loop-nest that - is being vectorized, but outside the immediately enclosing loop. */ - if (vec_stmt - && nested_p - && STMT_VINFO_TYPE (stmt_info) != reduc_vec_info_type - && (STMT_VINFO_RELEVANT (stmt_info) == vect_used_in_outer - || STMT_VINFO_RELEVANT (stmt_info) == - vect_used_in_outer_by_reduction)) - { - class loop *innerloop = LOOP_VINFO_LOOP (loop_vinfo)->inner; - imm_use_iterator imm_iter; - use_operand_p use_p; - tree scalar_dest; - - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "Record the vdef for outer-loop vectorization.\n"); - - /* Find the relevant loop-exit phi-node, and reord the vec_stmt there - (to be used when vectorizing outer-loop stmts that use the DEF of - STMT). */ - if (gimple_code (stmt) == GIMPLE_PHI) - scalar_dest = PHI_RESULT (stmt); - else - scalar_dest = gimple_get_lhs (stmt); - - FOR_EACH_IMM_USE_FAST (use_p, imm_iter, scalar_dest) - if (!flow_bb_inside_loop_p (innerloop, gimple_bb (USE_STMT (use_p)))) - { - stmt_vec_info exit_phi_info - = vinfo->lookup_stmt (USE_STMT (use_p)); - STMT_VINFO_VEC_STMT (exit_phi_info) = vec_stmt; - } - } - if (vec_stmt) STMT_VINFO_VEC_STMT (stmt_info) = vec_stmt; -- 2.25.1