2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
* dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
manual swaps.
* expr.c (expand_expr_real_2): Likewise.
From-SVN: r222608
+2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
+
+ * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
+ manual swaps.
+ * expr.c (expand_expr_real_2): Likewise.
+
2015-04-29 Jan Hubicka <hubicka@ucw.cz>
* tree.c (build_common_builtin_nodes): Do not build
if (can_compare_p (rcode, mode, ccp_jump)
|| (code == ORDERED && ! can_compare_p (ORDERED, mode, ccp_jump)))
{
- tem = if_true_label;
- if_true_label = if_false_label;
- if_false_label = tem;
+ std::swap (if_true_label, if_false_label);
code = rcode;
prob = inv (prob);
}
if (swap_commutative_operands_p (op0, op1))
{
- tem = op0;
- op0 = op1;
- op1 = tem;
+ std::swap (op0, op1);
code = swap_condition (code);
}
/* If op1 was placed in target, swap op0 and op1. */
if (target != op0 && target == op1)
- {
- temp = op0;
- op0 = op1;
- op1 = temp;
- }
+ std::swap (op0, op1);
/* We generate better code and avoid problems with op1 mentioning
target by forcing op1 into a pseudo if it isn't a constant. */