OSDN Git Service

tcg/tci: Improve tcg_target_call_clobber_regs
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Jan 2021 20:00:42 +0000 (10:00 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 19 Jun 2021 15:51:11 +0000 (08:51 -0700)
commitb6139eb0578fc422cfee77fccbd11152e73af1df
tree76a79f088a98d48b49598e0c6a7c69fad7d66211
parent22f15579fa1ca654d331cac8e68a4e70981a8801
tcg/tci: Improve tcg_target_call_clobber_regs

The current setting is much too pessimistic.  Indicating only
the one or two registers that are actually assigned after a
call should avoid unnecessary movement between the register
array and the stack array.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tci/tcg-target.c.inc