Commit 7bed1d3d by Kyrylo Tkachov Committed by Kyrylo Tkachov

[combine][obvious] Use std::swap in try_combine

	* combine.c (try_combine): Use std::swap instead of manually
	swapping.

From-SVN: r226094
parent 7ccb4e4e
2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* combine.c (try_combine): Use std::swap instead of manually
swapping.
2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com> 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
* config/mips/i6400.md: New file. * config/mips/i6400.md: New file.
......
...@@ -2730,11 +2730,11 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0, ...@@ -2730,11 +2730,11 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0,
/* If multiple insns feed into one of I2 or I3, they can be in any /* If multiple insns feed into one of I2 or I3, they can be in any
order. To simplify the code below, reorder them in sequence. */ order. To simplify the code below, reorder them in sequence. */
if (i0 && DF_INSN_LUID (i0) > DF_INSN_LUID (i2)) if (i0 && DF_INSN_LUID (i0) > DF_INSN_LUID (i2))
temp_insn = i2, i2 = i0, i0 = temp_insn; std::swap (i0, i2);
if (i0 && DF_INSN_LUID (i0) > DF_INSN_LUID (i1)) if (i0 && DF_INSN_LUID (i0) > DF_INSN_LUID (i1))
temp_insn = i1, i1 = i0, i0 = temp_insn; std::swap (i0, i1);
if (i1 && DF_INSN_LUID (i1) > DF_INSN_LUID (i2)) if (i1 && DF_INSN_LUID (i1) > DF_INSN_LUID (i2))
temp_insn = i1, i1 = i2, i2 = temp_insn; std::swap (i1, i2);
added_links_insn = 0; added_links_insn = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment