Revisão | 36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea (tree) |
---|---|
Hora | 2015-06-09 23:00:56 |
Autor | Aurelien Jarno <aurelien@aure...> |
Commiter | Richard Henderson |
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.
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>
@@ -574,7 +574,7 @@ static bool swap_commutative2(TCGArg *p1, TCGArg *p2) | ||
574 | 574 | } |
575 | 575 | |
576 | 576 | /* Propagate constants and copies, fold constant expressions. */ |
577 | -static void tcg_constant_folding(TCGContext *s) | |
577 | +void tcg_optimize(TCGContext *s) | |
578 | 578 | { |
579 | 579 | int oi, oi_next, nb_temps, nb_globals; |
580 | 580 |
@@ -1328,8 +1328,3 @@ static void tcg_constant_folding(TCGContext *s) | ||
1328 | 1328 | } |
1329 | 1329 | } |
1330 | 1330 | } |
1331 | - | |
1332 | -void tcg_optimize(TCGContext *s) | |
1333 | -{ | |
1334 | - tcg_constant_folding(s); | |
1335 | -} |