diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-10-08 15:21:43 -0500 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-10-27 09:48:07 -0700 |
commit | b4cb76e6208cf6b5bb39404c6d44a6514eb6842a (patch) | |
tree | 829655e4134d425e6c12ef42f2350f184a930635 /include/tcg/tcg.h | |
parent | 4a74626970ab4ea475263d155b10fb75c9af0b33 (diff) | |
download | qemu-b4cb76e6208cf6b5bb39404c6d44a6514eb6842a.zip qemu-b4cb76e6208cf6b5bb39404c6d44a6514eb6842a.tar.gz qemu-b4cb76e6208cf6b5bb39404c6d44a6514eb6842a.tar.bz2 |
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>
Diffstat (limited to 'include/tcg/tcg.h')
-rw-r--r-- | include/tcg/tcg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 8804a8c..8ff9dad 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -990,7 +990,7 @@ typedef struct TCGArgConstraint { #define TCG_MAX_OP_ARGS 16 -/* Bits for TCGOpDef->flags, 8 bits available. */ +/* Bits for TCGOpDef->flags, 8 bits available, all used. */ enum { /* Instruction exits the translation block. */ TCG_OPF_BB_EXIT = 0x01, @@ -1008,6 +1008,8 @@ enum { TCG_OPF_NOT_PRESENT = 0x20, /* Instruction operands are vectors. */ TCG_OPF_VECTOR = 0x40, + /* Instruction is a conditional branch. */ + TCG_OPF_COND_BRANCH = 0x80 }; typedef struct TCGOpDef { |