expr.c (do_store_flag): Remove duplicated code.

2012-09-23  Marc Glisse  <marc.glisse@inria.fr>

	* expr.c (do_store_flag): Remove duplicated code.

From-SVN: r191653
This commit is contained in:
Marc Glisse 2012-09-23 21:58:28 +02:00 committed by Marc Glisse
parent 4fd97a6380
commit 2d411f1d8e
2 changed files with 4 additions and 11 deletions

View file

@ -1,3 +1,7 @@
2012-09-23 Marc Glisse <marc.glisse@inria.fr>
* expr.c (do_store_flag): Remove duplicated code.
2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/predicates.md (altivec_register_operand,

View file

@ -10676,17 +10676,6 @@ do_store_flag (sepops ops, rtx target, enum machine_mode mode)
STRIP_NOPS (arg0);
STRIP_NOPS (arg1);
/* For vector typed comparisons emit code to generate the desired
all-ones or all-zeros mask. Conveniently use the VEC_COND_EXPR
expander for this. */
if (TREE_CODE (ops->type) == VECTOR_TYPE)
{
tree ifexp = build2 (ops->code, ops->type, arg0, arg1);
tree if_true = constant_boolean_node (true, ops->type);
tree if_false = constant_boolean_node (false, ops->type);
return expand_vec_cond_expr (ops->type, ifexp, if_true, if_false, target);
}
/* For vector typed comparisons emit code to generate the desired
all-ones or all-zeros mask. Conveniently use the VEC_COND_EXPR
expander for this. */