diff options
author | Richard Henderson <rth@twiddle.net> | 2012-10-02 11:32:21 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2012-10-17 17:30:40 +0200 |
commit | 24c9ae4eba5eec59256d0d0ace4d868a19f87528 (patch) | |
tree | 8ce6c527eea2e7b0bb236c7fbc9014eae27a52a8 /qemu-error.c | |
parent | 6f4d6b09088ee161ff4be0e4db4e4c0962c79070 (diff) | |
download | qemu-24c9ae4eba5eec59256d0d0ace4d868a19f87528.zip qemu-24c9ae4eba5eec59256d0d0ace4d868a19f87528.tar.gz qemu-24c9ae4eba5eec59256d0d0ace4d868a19f87528.tar.bz2 |
tcg: Split out swap_commutative as a subroutine
Reduces code duplication and prefers
movcond d, c1, c2, const, s
to
movcond d, c1, c2, s, const
It also prefers
add r, r, c
over
add r, c, r
when both inputs are known constants. This doesn't matter for true add, as
we will fully constant fold that. But it matters for a follow-on patch using
this routine for add2 which may not be fully foldable.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'qemu-error.c')
0 files changed, 0 insertions, 0 deletions