Skip to content

Commit

Permalink
* config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
Browse files Browse the repository at this point in the history
	open-coded swap with std::swap to swap values.
	(alpha_emit_setcc): Ditto.
	(alpha_emit_conditional_move): Ditto.
	(alpha_split_tmode_pair): Ditto.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217360 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
uros committed Nov 11, 2014
1 parent 2cc1223 commit 612bd51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
8 changes: 8 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2014-11-11 Uros Bizjak <[email protected]>

* config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
open-coded swap with std::swap to swap values.
(alpha_emit_setcc): Ditto.
(alpha_emit_conditional_move): Ditto.
(alpha_split_tmode_pair): Ditto.

2014-11-11 Evgeny Stupachenko <[email protected]>

* tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
Expand Down
15 changes: 7 additions & 8 deletions gcc/config/alpha/alpha.c
Original file line number Diff line number Diff line change
Expand Up @@ -2545,7 +2545,7 @@ alpha_emit_conditional_branch (rtx operands[], machine_mode cmp_mode)
{
cmp_code = swap_condition (code);
branch_code = NE;
tem = op0, op0 = op1, op1 = tem;
std::swap (op0, op1);
}
else
{
Expand All @@ -2569,7 +2569,7 @@ alpha_emit_conditional_branch (rtx operands[], machine_mode cmp_mode)
else if (op0 == CONST0_RTX (DFmode))
{
/* Undo the swap we probably did just above. */
tem = op0, op0 = op1, op1 = tem;
std::swap (op0, op1);
branch_code = swap_condition (cmp_code);
cmp_code = UNKNOWN;
}
Expand Down Expand Up @@ -2689,7 +2689,7 @@ alpha_emit_setcc (rtx operands[], machine_mode cmp_mode)
code = swap_condition (code);
if (cmp_mode == DFmode)
cmp_code = code, code = NE;
tmp = op0, op0 = op1, op1 = tmp;
std::swap (op0, op1);
break;

default:
Expand Down Expand Up @@ -2786,7 +2786,7 @@ alpha_emit_conditional_move (rtx cmp, machine_mode mode)
{
cmp_code = swap_condition (code);
code = NE;
tem = op0, op0 = op1, op1 = tem;
std::swap (op0, op1);
}
break;

Expand Down Expand Up @@ -2857,7 +2857,7 @@ alpha_emit_conditional_move (rtx cmp, machine_mode mode)
if (cmp_mode == DImode && op1 == const0_rtx)
break;
code = swap_condition (code);
tem = op0, op0 = op1, op1 = tem;
std::swap (op0, op1);
break;

default:
Expand Down Expand Up @@ -3318,9 +3318,8 @@ alpha_split_tmode_pair (rtx operands[4], machine_mode mode,

if (fixup_overlap && reg_overlap_mentioned_p (operands[0], operands[3]))
{
rtx tmp;
tmp = operands[0], operands[0] = operands[1], operands[1] = tmp;
tmp = operands[2], operands[2] = operands[3], operands[3] = tmp;
std::swap (operands[0], operands[1]);
std::swap (operands[2], operands[3]);
}
}

Expand Down

0 comments on commit 612bd51

Please sign in to comment.