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.
This commit is contained in:
Richard Biener 2024-11-12 14:45:02 +01:00 committed by Richard Biener
parent 86708a88fb
commit 9ede072ffa

View file

@ -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;