dojump.c (do_compare_rtx_and_jump): Use std::swap instead of manual swaps.
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
This commit is contained in:
parent
fd2bbdfd97
commit
00c1cf38e1
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -987,9 +987,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp,
|
||||
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);
|
||||
}
|
||||
@ -1000,9 +998,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp,
|
||||
|
||||
if (swap_commutative_operands_p (op0, op1))
|
||||
{
|
||||
tem = op0;
|
||||
op0 = op1;
|
||||
op1 = tem;
|
||||
std::swap (op0, op1);
|
||||
code = swap_condition (code);
|
||||
}
|
||||
|
||||
|
@ -8870,11 +8870,7 @@ expand_expr_real_2 (sepops ops, rtx target, machine_mode tmode,
|
||||
|
||||
/* 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. */
|
||||
|
Loading…
Reference in New Issue
Block a user