From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0bCr-0007BL-EV for qemu-devel@nongnu.org; Thu, 04 Jun 2015 15:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0bCp-0006fc-8l for qemu-devel@nongnu.org; Thu, 04 Jun 2015 15:53:37 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:101::1]:45513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0bCp-0006f7-0N for qemu-devel@nongnu.org; Thu, 04 Jun 2015 15:53:35 -0400 From: Aurelien Jarno Date: Thu, 4 Jun 2015 21:53:27 +0200 Message-Id: <1433447607-31184-6-git-send-email-aurelien@aurel32.net> In-Reply-To: <1433447607-31184-1-git-send-email-aurelien@aurel32.net> References: <1433447607-31184-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH v1 5/5] tcg/optimize: rename tcg_constant_folding List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Richard Henderson 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. Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- tcg/optimize.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index a8dac85..026d70b 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -574,7 +574,7 @@ static bool swap_commutative2(TCGArg *p1, TCGArg *p2) } /* Propagate constants and copies, fold constant expressions. */ -static void tcg_constant_folding(TCGContext *s) +void tcg_optimize(TCGContext *s) { int oi, oi_next, nb_temps, nb_globals; @@ -1328,8 +1328,3 @@ static void tcg_constant_folding(TCGContext *s) } } } - -void tcg_optimize(TCGContext *s) -{ - tcg_constant_folding(s); -} -- 2.1.4