From 42dd2addbe75ef68ab1bd09ba9fb2d5d63abf476 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno <aurelien@aurel32.net> Date: Sat, 10 Feb 2018 21:36:11 -0500 Subject: [PATCH] tcg/optimize: rename tcg_constant_folding The tcg_constant_folding folding ends up doing all the optimizations (which is a good thing to avoid looping on all ops multiple time), so make it clear and just rename it tcg_optimize. Backports commit 36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea from qemu --- qemu/tcg/optimize.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qemu/tcg/optimize.c b/qemu/tcg/optimize.c index 6dfa54aa..8a26356a 100644 --- a/qemu/tcg/optimize.c +++ b/qemu/tcg/optimize.c @@ -577,7 +577,7 @@ static bool swap_commutative2(TCGContext *s, TCGArg *p1, TCGArg *p2) } /* Propagate constants and copies, fold constant expressions. */ -static void tcg_constant_folding(TCGContext *s) +void tcg_optimize(TCGContext *s) { struct tcg_temp_info *temps = s->temps2; int oi, oi_next, nb_temps, nb_globals; @@ -1332,8 +1332,3 @@ static void tcg_constant_folding(TCGContext *s) } } } - -void tcg_optimize(TCGContext *s) -{ - tcg_constant_folding(s); -}