gcc/
* optabs.c (emit_condiitonal_move): Short circuit for identical
sources.
From-SVN: r238595
+2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
+
+ * optabs.c (emit_condiitonal_move): Short circuit for identical
+ sources.
+
2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
* ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
enum insn_code icode;
enum rtx_code reversed;
+ /* If the two source operands are identical, that's just a move. */
+
+ if (rtx_equal_p (op2, op3))
+ {
+ if (!target)
+ target = gen_reg_rtx (mode);
+
+ emit_move_insn (target, op3);
+ return target;
+ }
+
/* If one operand is constant, make it the second one. Only do this
if the other operand is not constant as well. */