tcg: Do not kill globals at conditional branches
commitb4cb76e6208cf6b5bb39404c6d44a6514eb6842a
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Oct 2020 20:21:43 +0000 (8 15:21 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Oct 2020 16:48:07 +0000 (27 09:48 -0700)
tree829655e4134d425e6c12ef42f2350f184a930635
parent4a74626970ab4ea475263d155b10fb75c9af0b33
tcg: Do not kill globals at conditional branches

We can easily register allocate the entire extended basic block
(in this case, the set of blocks connected by fallthru), simply
by not discarding the register state at the branch.

This does not help blocks starting with a label, as they are
reached via a taken branch, and that would require saving the
complete register state at the branch.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg-opc.h
include/tcg/tcg.h
tcg/tcg.c