• A
    tcg: sync output arguments on liveness request · ec7a869d
    Aurelien Jarno 提交于
    Synchronize an output argument when requested by the liveness analysis.
    This is needed so that the temp can be declared dead later.
    
    For that, add a new op_sync_args table in which each bit tells if the
    corresponding output argument needs to be synchronized with the memory.
    Pass it to the tcg_reg_alloc_* functions, and honor this bit. We need to
    synchronize the argument before marking it as dead, and we have to make
    sure all the infos about the temp are correctly filled.
    
    At the same time change some types from unsigned int to uint16_t when
    passing op_dead_args.
    Reviewed-by: NRichard Henderson <rth@twiddle.net>
    Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
    ec7a869d
tcg.c 78.5 KB