i386.c (output_387_binary_op): Use std::swap.

* config/i386/i386.c (output_387_binary_op): Use std::swap.

From-SVN: r219204
This commit is contained in:
Uros Bizjak 2015-01-05 23:08:07 +01:00 committed by Uros Bizjak
parent c9bd6bcd5d
commit 389d63bb1e
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2015-01-05 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (output_387_binary_op): Use std::swap.
2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
* rtlanal.c (refers_to_regno_p): Change return value from int to bool.
@ -201,7 +205,7 @@
* config/pa/predicates.md (reg_before_reload_operand): Tighten
predicate to reject register index and LO_SUM DLT memory forms
after reload.
2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
* doc/invoke.texi (Option Summary): Fix spelling of

View File

@ -16414,11 +16414,7 @@ output_387_binary_op (rtx insn, rtx *operands)
case MULT:
case PLUS:
if (REG_P (operands[2]) && REGNO (operands[0]) == REGNO (operands[2]))
{
rtx temp = operands[2];
operands[2] = operands[1];
operands[1] = temp;
}
std::swap (operands[1], operands[2]);
/* know operands[0] == operands[1]. */