• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea (tree)
Time2015-06-09 23:00:56
AuthorAurelien Jarno <aurelien@aure...>
CommiterRichard Henderson

Log Message

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>

Change Summary

Incremental Difference

--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -574,7 +574,7 @@ static bool swap_commutative2(TCGArg *p1, TCGArg *p2)
574574 }
575575
576576 /* Propagate constants and copies, fold constant expressions. */
577-static void tcg_constant_folding(TCGContext *s)
577+void tcg_optimize(TCGContext *s)
578578 {
579579 int oi, oi_next, nb_temps, nb_globals;
580580
@@ -1328,8 +1328,3 @@ static void tcg_constant_folding(TCGContext *s)
13281328 }
13291329 }
13301330 }
1331-
1332-void tcg_optimize(TCGContext *s)
1333-{
1334- tcg_constant_folding(s);
1335-}