projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c9ae4
)
tcg: Canonicalize add2 operand ordering
author
Richard Henderson
<rth@twiddle.net>
Tue, 2 Oct 2012 18:32:22 +0000
(11:32 -0700)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 17 Oct 2012 15:31:53 +0000
(17:31 +0200)
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/optimize.c
patch
|
blob
|
history
diff --git
a/tcg/optimize.c
b/tcg/optimize.c
index ff4ddb2efc783faca95ce4148fc3b2eb4ba3e1c8..8d74186ab39051076b1426c35895d220b447528a 100644
(file)
--- a/
tcg/optimize.c
+++ b/
tcg/optimize.c
@@
-478,6
+478,11
@@
static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
if (swap_commutative(args[0], &args[4], &args[3])) {
args[5] = tcg_invert_cond(args[5]);
}
+ break;
+ case INDEX_op_add2_i32:
+ swap_commutative(args[0], &args[2], &args[4]);
+ swap_commutative(args[1], &args[3], &args[5]);
+ break;
default:
break;
}