From: Guillaume Emont Date: Fri, 21 Dec 2012 13:05:37 +0000 (+0100) Subject: mips: copyb: only do something if source and dest are different X-Git-Tag: orc-0.4.17~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85bbf8a0ee93f4d529fd2fc5a163f6195253ccf8;p=platform%2Fupstream%2Forc.git mips: copyb: only do something if source and dest are different --- diff --git a/orc/orcrules-mips.c b/orc/orcrules-mips.c index a61a79c..f64b207 100644 --- a/orc/orcrules-mips.c +++ b/orc/orcrules-mips.c @@ -186,7 +186,8 @@ mips_rule_copyb (OrcCompiler *compiler, void *user, OrcInstruction *insn) int src = ORC_SRC_ARG (compiler, insn, 0); int dest = ORC_DEST_ARG (compiler, insn, 0); - orc_mips_emit_move (compiler, dest, src); + if (dest != src) + orc_mips_emit_move (compiler, dest, src); } void