tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace assert with guard, remove check on detected reduction.
2015-05-22 Richard Biener <rguenther@suse.de> * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace assert with guard, remove check on detected reduction. (vect_recog_sad_pattern): Likewise. (vect_recog_widen_sum_pattern): Likewise. From-SVN: r223525
This commit is contained in:
parent
6333ad3d45
commit
328dc4771b
|
@ -1,3 +1,10 @@
|
|||
2015-05-22 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
|
||||
assert with guard, remove check on detected reduction.
|
||||
(vect_recog_sad_pattern): Likewise.
|
||||
(vect_recog_widen_sum_pattern): Likewise.
|
||||
|
||||
2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||
|
||||
* config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
|
||||
|
|
|
@ -318,6 +318,11 @@ vect_recog_dot_prod_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
|
||||
loop = LOOP_VINFO_LOOP (loop_info);
|
||||
|
||||
/* We don't allow changing the order of the computation in the inner-loop
|
||||
when doing outer-loop vectorization. */
|
||||
if (loop && nested_in_vect_loop_p (loop, last_stmt))
|
||||
return NULL;
|
||||
|
||||
if (!is_gimple_assign (last_stmt))
|
||||
return NULL;
|
||||
|
||||
|
@ -366,8 +371,6 @@ vect_recog_dot_prod_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
{
|
||||
gimple def_stmt;
|
||||
|
||||
if (STMT_VINFO_DEF_TYPE (stmt_vinfo) != vect_reduction_def)
|
||||
return NULL;
|
||||
oprnd0 = gimple_assign_rhs1 (last_stmt);
|
||||
oprnd1 = gimple_assign_rhs2 (last_stmt);
|
||||
if (!types_compatible_p (TREE_TYPE (oprnd0), type)
|
||||
|
@ -469,10 +472,6 @@ vect_recog_dot_prod_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
dump_printf (MSG_NOTE, "\n");
|
||||
}
|
||||
|
||||
/* We don't allow changing the order of the computation in the inner-loop
|
||||
when doing outer-loop vectorization. */
|
||||
gcc_assert (!nested_in_vect_loop_p (loop, last_stmt));
|
||||
|
||||
return pattern_stmt;
|
||||
}
|
||||
|
||||
|
@ -533,6 +532,11 @@ vect_recog_sad_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
|
||||
loop = LOOP_VINFO_LOOP (loop_info);
|
||||
|
||||
/* We don't allow changing the order of the computation in the inner-loop
|
||||
when doing outer-loop vectorization. */
|
||||
if (loop && nested_in_vect_loop_p (loop, last_stmt))
|
||||
return NULL;
|
||||
|
||||
if (!is_gimple_assign (last_stmt))
|
||||
return NULL;
|
||||
|
||||
|
@ -586,8 +590,6 @@ vect_recog_sad_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
{
|
||||
gimple def_stmt;
|
||||
|
||||
if (STMT_VINFO_DEF_TYPE (stmt_vinfo) != vect_reduction_def)
|
||||
return NULL;
|
||||
plus_oprnd0 = gimple_assign_rhs1 (last_stmt);
|
||||
plus_oprnd1 = gimple_assign_rhs2 (last_stmt);
|
||||
if (!types_compatible_p (TREE_TYPE (plus_oprnd0), sum_type)
|
||||
|
@ -703,10 +705,6 @@ vect_recog_sad_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
dump_printf (MSG_NOTE, "\n");
|
||||
}
|
||||
|
||||
/* We don't allow changing the order of the computation in the inner-loop
|
||||
when doing outer-loop vectorization. */
|
||||
gcc_assert (!nested_in_vect_loop_p (loop, last_stmt));
|
||||
|
||||
return pattern_stmt;
|
||||
}
|
||||
|
||||
|
@ -1201,6 +1199,11 @@ vect_recog_widen_sum_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
|
||||
loop = LOOP_VINFO_LOOP (loop_info);
|
||||
|
||||
/* We don't allow changing the order of the computation in the inner-loop
|
||||
when doing outer-loop vectorization. */
|
||||
if (loop && nested_in_vect_loop_p (loop, last_stmt))
|
||||
return NULL;
|
||||
|
||||
if (!is_gimple_assign (last_stmt))
|
||||
return NULL;
|
||||
|
||||
|
@ -1219,9 +1222,6 @@ vect_recog_widen_sum_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
if (gimple_assign_rhs_code (last_stmt) != PLUS_EXPR)
|
||||
return NULL;
|
||||
|
||||
if (STMT_VINFO_DEF_TYPE (stmt_vinfo) != vect_reduction_def)
|
||||
return NULL;
|
||||
|
||||
oprnd0 = gimple_assign_rhs1 (last_stmt);
|
||||
oprnd1 = gimple_assign_rhs2 (last_stmt);
|
||||
if (!types_compatible_p (TREE_TYPE (oprnd0), type)
|
||||
|
@ -1255,10 +1255,6 @@ vect_recog_widen_sum_pattern (vec<gimple> *stmts, tree *type_in,
|
|||
dump_printf (MSG_NOTE, "\n");
|
||||
}
|
||||
|
||||
/* We don't allow changing the order of the computation in the inner-loop
|
||||
when doing outer-loop vectorization. */
|
||||
gcc_assert (!nested_in_vect_loop_p (loop, last_stmt));
|
||||
|
||||
return pattern_stmt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue