+2014-11-11 Uros Bizjak <ubizjak@gmail.com>
+
+ * 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 <evstupac@gmail.com>
* tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
{
cmp_code = swap_condition (code);
branch_code = NE;
- tem = op0, op0 = op1, op1 = tem;
+ std::swap (op0, op1);
}
else
{
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;
}
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:
{
cmp_code = swap_condition (code);
code = NE;
- tem = op0, op0 = op1, op1 = tem;
+ std::swap (op0, op1);
}
break;
if (cmp_mode == DImode && op1 == const0_rtx)
break;
code = swap_condition (code);
- tem = op0, op0 = op1, op1 = tem;
+ std::swap (op0, op1);
break;
default:
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]);
}
}