projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10bbf2c
)
mips: copyb: only do something if source and dest are different
author
Guillaume Emont
<guijemont@igalia.com>
Fri, 21 Dec 2012 13:05:37 +0000
(14:05 +0100)
committer
Guillaume Emont
<guijemont@igalia.com>
Fri, 28 Dec 2012 14:23:39 +0000
(15:23 +0100)
orc/orcrules-mips.c
patch
|
blob
|
history
diff --git
a/orc/orcrules-mips.c
b/orc/orcrules-mips.c
index
a61a79c
..
f64b207
100644
(file)
--- 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