projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
619f90b
)
tcg-ppc: Avoid code for nop move
author
Richard Henderson
<rth@twiddle.net>
Wed, 28 Aug 2013 22:51:08 +0000
(15:51 -0700)
committer
Richard Henderson
<rth@twiddle.net>
Wed, 25 Sep 2013 14:46:31 +0000
(07:46 -0700)
While these are rare from code that's been through the optimizer,
it's not uncommon within the tcg backend.
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/ppc/tcg-target.c
patch
|
blob
|
history
diff --git
a/tcg/ppc/tcg-target.c
b/tcg/ppc/tcg-target.c
index 24a8621fe1260139149f1fad2079e804f5c60d64..965108b8bd898a10dd761dfc62278d1f4e02d1a9 100644
(file)
--- a/
tcg/ppc/tcg-target.c
+++ b/
tcg/ppc/tcg-target.c
@@
-450,7
+450,9
@@
static const uint32_t tcg_to_bc[] = {
static void tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg)
{
- tcg_out32 (s, OR | SAB (arg, ret, arg));
+ if (ret != arg) {
+ tcg_out32(s, OR | SAB(arg, ret, arg));
+ }
}
static void tcg_out_movi(TCGContext *s, TCGType type,