From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2066) id 1A7C23939C39; Wed, 10 Jun 2020 03:50:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A7C23939C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591761013; bh=6vueITizfQATBcPPIYl2fbfrC4XerkAJs9YOg9Di2Kc=; h=From:To:Subject:Date:From; b=RcSditY2xS3JwT7MwVYeW8CYNp+WcKFgC1P9K0akl46MEfaqaH6YEVTy28DUM5iIq ZwJ8skp+mWDq+KRSkO7f5U7W74xHMCt29KedYkjpIGuQO7Ua8gheh1z/ut/eXVTAnC UBtVenJK7f5jBDshckJ0Jflfd3llG7onT3VgavJk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jiu Fu Guo To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/guojiufu/heads/guojiufu-branch)] Remove dead code X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/users/guojiufu/heads/guojiufu-branch X-Git-Oldrev: e12516e140a4e6aa75d886b165d959991e3350c3 X-Git-Newrev: ac22e651efe0da924925ac33a31e5c8d73e11fef Message-Id: <20200610035013.1A7C23939C39@sourceware.org> Date: Wed, 10 Jun 2020 03:50:13 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2020 03:50:13 -0000 https://gcc.gnu.org/g:ac22e651efe0da924925ac33a31e5c8d73e11fef commit ac22e651efe0da924925ac33a31e5c8d73e11fef Author: Richard Biener Date: Tue Jun 9 16:00:43 2020 +0200 Remove dead code This removes dead code that was left over from the reduction vectorization refactoring last year. 2020-06-09 Richard Biener * tree-vect-stmts.c (vect_transform_stmt): Remove dead code. Diff: --- 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;