Commit 8c944c97 by Richard Biener Committed by Richard Biener

tree-vect-stmts.c (vectorizable_condition): Do not get at else_clause vect def…

tree-vect-stmts.c (vectorizable_condition): Do not get at else_clause vect def for EXTRACT_LAST_REDUCTION.

2018-11-20  Richard Biener  <rguenther@suse.de>

	* tree-vect-stmts.c (vectorizable_condition): Do not get
	at else_clause vect def for EXTRACT_LAST_REDUCTION.  Remove
	pointless vect_is_simple_use calls.

From-SVN: r266314
parent c1d21cd1
2018-11-20 Richard Biener <rguenther@suse.de> 2018-11-20 Richard Biener <rguenther@suse.de>
* tree-vect-stmts.c (vectorizable_condition): Do not get
at else_clause vect def for EXTRACT_LAST_REDUCTION. Remove
pointless vect_is_simple_use calls.
2018-11-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/88074 PR tree-optimization/88074
* tree-ssa-dom.c (pass_dominator::execute): Do not walk * tree-ssa-dom.c (pass_dominator::execute): Do not walk
backedges. backedges.
...@@ -8911,26 +8911,21 @@ vectorizable_condition (stmt_vec_info stmt_info, gimple_stmt_iterator *gsi, ...@@ -8911,26 +8911,21 @@ vectorizable_condition (stmt_vec_info stmt_info, gimple_stmt_iterator *gsi,
vec_cond_lhs vec_cond_lhs
= vect_get_vec_def_for_operand (cond_expr, stmt_info, = vect_get_vec_def_for_operand (cond_expr, stmt_info,
comp_vectype); comp_vectype);
vect_is_simple_use (cond_expr, stmt_info->vinfo, &dts[0]);
} }
else else
{ {
vec_cond_lhs vec_cond_lhs
= vect_get_vec_def_for_operand (cond_expr0, = vect_get_vec_def_for_operand (cond_expr0,
stmt_info, comp_vectype); stmt_info, comp_vectype);
vect_is_simple_use (cond_expr0, loop_vinfo, &dts[0]);
vec_cond_rhs vec_cond_rhs
= vect_get_vec_def_for_operand (cond_expr1, = vect_get_vec_def_for_operand (cond_expr1,
stmt_info, comp_vectype); stmt_info, comp_vectype);
vect_is_simple_use (cond_expr1, loop_vinfo, &dts[1]);
} }
vec_then_clause = vect_get_vec_def_for_operand (then_clause, vec_then_clause = vect_get_vec_def_for_operand (then_clause,
stmt_info); stmt_info);
vect_is_simple_use (then_clause, loop_vinfo, &dts[2]); if (reduction_type != EXTRACT_LAST_REDUCTION)
vec_else_clause = vect_get_vec_def_for_operand (else_clause, vec_else_clause = vect_get_vec_def_for_operand (else_clause,
stmt_info); stmt_info);
vect_is_simple_use (else_clause, loop_vinfo, &dts[3]);
} }
} }
else else
......
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