aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2015-06-04 21:53:27 +0200
committerRichard Henderson <rth@twiddle.net>2015-06-09 07:00:56 -0700
commit36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea (patch)
tree72a69cd06a85ab5737eef1b410bc733ccd6e19ec /tcg
parent97a79eb70dd35a24fda87d86196afba5e6f21c5d (diff)
downloadqemu-36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea.zip
qemu-36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea.tar.gz
qemu-36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea.tar.bz2
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>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/optimize.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 859a6c1..0f6f700 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);
-}