]> git.proxmox.com Git - mirror_qemu.git/commit - tcg/tcg.c
tcg: sync output arguments on liveness request
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 9 Oct 2012 19:53:07 +0000 (21:53 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 28 Oct 2012 13:54:21 +0000 (14:54 +0100)
commitec7a869d31a1f82fe5b7750d8952c26753ea1df8
tree21670ae1c95815d4888a9098c2c22bbaabaf9573
parent1ad80729bea3d8ed1b67b457af44cbf9bbd8c3ec
tcg: sync output arguments on liveness request

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: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/tcg.c
tcg/tcg.h