tcg/optimize: rename tcg_constant_folding
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 4 Jun 2015 19:53:27 +0000 (21:53 +0200)
committerRichard Henderson <rth@twiddle.net>
Tue, 9 Jun 2015 14:00:56 +0000 (07:00 -0700)
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 <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-Id: <1433447607-31184-6-git-send-email-aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/optimize.c

index 859a6c15d30cda59f143aaf09ad3f31b4b715258..0f6f7008da28e1cd45d4a3c4aec543587ff06613 100644 (file)
@@ -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);
-}