]> git.proxmox.com Git - qemu.git/commit
tcg/optimize: optimize "op r, a, a => movi r, 0"
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 18 Sep 2012 17:12:36 +0000 (19:12 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 22 Sep 2012 13:10:21 +0000 (15:10 +0200)
commit3c94193e0bbdd855bcbedabd27e3cbe1e6bc6242
tree66acc972bc03f5d47de4488f60c5fd786cbd7d27
parent0aba1c7376ad325202f328211ab6dfcae94c7f2a
tcg/optimize: optimize "op r, a, a => movi r, 0"

Now that it's possible to detect copies, we can optimize the case
the "op r, a, a => movi r, 0". This helps in the computation of
overflow flags when one of the two args is 0.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/optimize.c