From: Richard Henderson Date: Mon, 9 Dec 2024 03:42:53 +0000 (-0600) Subject: tcg/optimize: Use finish_folding as default in tcg_optimize X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0ae564288947d3670aaa75c931e838d5265d2a64;p=qemu.git tcg/optimize: Use finish_folding as default in tcg_optimize All non-default cases now finish folding within each function. Do the same with the default case and assert it is done after. Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- diff --git a/tcg/optimize.c b/tcg/optimize.c index 4271d14d2c..51cfcb15d2 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -3096,11 +3096,9 @@ void tcg_optimize(TCGContext *s) done = true; break; default: + done = finish_folding(&ctx, op); break; } - - if (!done) { - finish_folding(&ctx, op); - } + tcg_debug_assert(done); } }