Commit cb1ba35f by Richard Biener Committed by Richard Biener

re PR tree-optimization/89049 (Unexpected vectorization)

2019-01-25  Richard Biener  <rguenther@suse.de>

	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.

From-SVN: r268264
parent 9c6b4601
2019-01-25 Richard Biener <rguenther@suse.de>
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 <richard.sandiford@arm.com> 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
* config/aarch64/aarch64-sve.md (*pred_mov<mode>) * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
......
...@@ -1100,11 +1100,11 @@ vect_compute_single_scalar_iteration_cost (loop_vec_info loop_vinfo) ...@@ -1100,11 +1100,11 @@ vect_compute_single_scalar_iteration_cost (loop_vec_info loop_vinfo)
continue; continue;
/* Skip stmts that are not vectorized inside the loop. */ /* Skip stmts that are not vectorized inside the loop. */
if (stmt_info stmt_vec_info vstmt_info = vect_stmt_to_vectorize (stmt_info);
&& !STMT_VINFO_RELEVANT_P (stmt_info) if (!STMT_VINFO_RELEVANT_P (vstmt_info)
&& (!STMT_VINFO_LIVE_P (stmt_info) && (!STMT_VINFO_LIVE_P (vstmt_info)
|| !VECTORIZABLE_CYCLE_DEF (STMT_VINFO_DEF_TYPE (stmt_info))) || !VECTORIZABLE_CYCLE_DEF
&& !STMT_VINFO_IN_PATTERN_P (stmt_info)) (STMT_VINFO_DEF_TYPE (vstmt_info))))
continue; continue;
vect_cost_for_stmt kind; vect_cost_for_stmt kind;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment