From: Richard Biener Date: Tue, 12 Nov 2024 13:45:02 +0000 (+0100) Subject: Avoid expand_vec_cond_expr_p with comparison code X-Git-Tag: basepoints/gcc-16~4317 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ede072ffafcde27d0e9fe76bb7ffacb4f48a2d6;p=thirdparty%2Fgcc.git Avoid expand_vec_cond_expr_p with comparison code This removes the obsolete API use by vector divmod lowering. * tree-vect-generic.cc (expand_vector_divmod): Query vector comparison and vec_cond_mask capability. --- diff --git a/gcc/tree-vect-generic.cc b/gcc/tree-vect-generic.cc index 21d906e9c559..72f251f09620 100644 --- a/gcc/tree-vect-generic.cc +++ b/gcc/tree-vect-generic.cc @@ -765,8 +765,10 @@ expand_vector_divmod (gimple_stmt_iterator *gsi, tree type, tree op0, type, cur_op); } } + tree mask_type = truth_type_for (type); if (addend == NULL_TREE - && expand_vec_cond_expr_p (type, type, LT_EXPR)) + && expand_vec_cmp_expr_p (type, mask_type, LT_EXPR) + && expand_vec_cond_expr_p (type, mask_type)) { tree zero, cst, mask_type, mask; gimple *stmt, *cond;