+2017-12-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/80631
+ * tree-vect-loop.c (vect_create_epilog_for_reduction): Compare
+ induc_code against MAX_EXPR or MIN_EXPR instead of reduc_fn against
+ IFN_REDUC_MAX or IFN_REDUC_MIN.
+
2017-12-18 Jeff Law <law@redhat.com>
* tree-ssa-dom.c (record_equivalences_from_phis): Do not
&& (STMT_VINFO_VEC_REDUCTION_TYPE (stmt_info)
== INTEGER_INDUC_COND_REDUCTION)
&& !integer_zerop (induc_val)
- && ((reduc_fn == IFN_REDUC_MAX
+ && ((induc_code == MAX_EXPR
&& tree_int_cst_lt (initial_def, induc_val))
- || (reduc_fn == IFN_REDUC_MIN
+ || (induc_code == MIN_EXPR
&& tree_int_cst_lt (induc_val, initial_def))))
induc_val = initial_def;
vect_is_simple_use (initial_def, loop_vinfo, &def_stmt, &initial_def_dt);