]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/optimize: check types in copy propagation
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 11 Sep 2012 10:26:23 +0000 (12:26 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Oct 2012 06:42:09 +0000 (01:42 -0500)
commita4c701ee768cc9f6ff7dda4081b3293caf9ba837
treec7ff016e4671703d61d84eadc4a72198b70113b4
parentad797145ae485d64ece97ed61bc719a1e425b06a
tcg/optimize: check types in copy propagation

The copy propagation doesn't check the types of the temps during copy
propagation. However TCG is using the mov_i32 for the i64 to i32
conversion and thus the two are not equivalent.

With this patch tcg_opt_gen_mov() doesn't consider two temps of
different type as copies anymore.

So far it seems the optimization was not aggressive enough to trigger
this bug, but it will be triggered later in this series once the copy
propagation is improved.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/optimize.c