• A
    tcg/optimize: check types in copy propagation · b80bb016
    Aurelien Jarno 提交于
    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: NRichard Henderson <rth@twiddle.net>
    Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
    b80bb016
optimize.c 23.1 KB