]> git.proxmox.com Git - 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)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 22 Sep 2012 13:10:20 +0000 (15:10 +0200)
commitb80bb016d8c8e9d74345a90ab6dac1cb547904e0
treece9f817c147f7329cb26efa1c5f5e34472446e78
parent48b56ce1683dec02a29448f31861fca4dd0a0b33
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>
tcg/optimize.c