Richard Henderson <richard.hender...@linaro.org> writes:
> Rather than try to keep these up-to-date across folding, > re-read nb_oargs at the end, after re-reading the opcode. > > A couple of asserts need dropping, but that will take care > of itself as we split the function further. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > tcg/optimize.c | 14 ++++---------- > 1 file changed, 4 insertions(+), 10 deletions(-) > > diff --git a/tcg/optimize.c b/tcg/optimize.c > index 74b9aa025a..77cdffaaef 100644 > --- a/tcg/optimize.c > +++ b/tcg/optimize.c <snip> > > @@ -1579,6 +1572,7 @@ void tcg_optimize(TCGContext *s) > if (def->flags & TCG_OPF_BB_END) { > memset(&ctx.temps_used, 0, sizeof(ctx.temps_used)); > } else { > + int nb_oargs = def->nb_oargs; > for (i = 0; i < nb_oargs; i++) { nit: couldn't you just do for (i = 0; i < deb->nb_oargs; i++) or is that too much for the compiler to wrap it's head around? Either way: Reviewed-by: Alex Bennée <alex.ben...@linaro.org> -- Alex Bennée