]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tcg: Avoid loops against variable bounds
authorRichard Henderson <rth@twiddle.net>
Wed, 2 Nov 2016 17:21:44 +0000 (11:21 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2017 19:44:34 +0000 (21:44 +0200)
commitac3b88911ebc6fc841f28898ee8aed40839debe2
tree432da6cf764a5fa8dbfb7d70bb21e54e81024170
parentb83eabeac06e38706738bd5e92b1ba117a1b554d
tcg: Avoid loops against variable bounds

Copy s->nb_globals or s->nb_temps to a local variable for the purposes
of iteration.  This should allow the compiler to use low-overhead
looping constructs on some hosts.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c