mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
tcg: Link branches to the labels
This allows us to easily find all branches that use a label. Since 'refs' is only tested vs zero, remove it and test for an empty list instead. Drop the use of bitfields, which had been used to pack refs into a single 32-bit word. Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
533206f052
commit
f85b1fc4a0
4 changed files with 53 additions and 25 deletions
|
@ -259,12 +259,7 @@ static inline void gen_set_label(TCGLabel *l)
|
|||
tcg_gen_op1(INDEX_op_set_label, label_arg(l));
|
||||
}
|
||||
|
||||
static inline void tcg_gen_br(TCGLabel *l)
|
||||
{
|
||||
l->refs++;
|
||||
tcg_gen_op1(INDEX_op_br, label_arg(l));
|
||||
}
|
||||
|
||||
void tcg_gen_br(TCGLabel *l);
|
||||
void tcg_gen_mb(TCGBar);
|
||||
|
||||
/* Helper calls. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue