From: rguenth Date: Fri, 25 Jan 2019 12:46:24 +0000 (+0000) Subject: 2019-01-25 Richard Biener X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d5511dd17fa507a3726142e5b4bf2027d1e4437;p=thirdparty%2Fgcc.git 2019-01-25 Richard Biener PR tree-optimization/89049 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Look at the pattern stmt to determine if the stmt is vectorized. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268264 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b91451e5e09..cc4f4413f142 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-01-25 Richard Biener + + PR tree-optimization/89049 + * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): + Look at the pattern stmt to determine if the stmt is vectorized. + 2019-01-25 Richard Sandiford * config/aarch64/aarch64-sve.md (*pred_mov) diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 202cab940d47..eda4c24846ad 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -1100,11 +1100,11 @@ vect_compute_single_scalar_iteration_cost (loop_vec_info loop_vinfo) continue; /* Skip stmts that are not vectorized inside the loop. */ - if (stmt_info - && !STMT_VINFO_RELEVANT_P (stmt_info) - && (!STMT_VINFO_LIVE_P (stmt_info) - || !VECTORIZABLE_CYCLE_DEF (STMT_VINFO_DEF_TYPE (stmt_info))) - && !STMT_VINFO_IN_PATTERN_P (stmt_info)) + stmt_vec_info vstmt_info = vect_stmt_to_vectorize (stmt_info); + if (!STMT_VINFO_RELEVANT_P (vstmt_info) + && (!STMT_VINFO_LIVE_P (vstmt_info) + || !VECTORIZABLE_CYCLE_DEF + (STMT_VINFO_DEF_TYPE (vstmt_info)))) continue; vect_cost_for_stmt kind;