Author: zoltan
Date: 2007-12-15 14:19:09 -0500 (Sat, 15 Dec 2007)
New Revision: 91358
Modified:
branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog
branches/vargaz/mini-linear-il/mono/mono/mini/mini.c
Log:
2007-12-15 Zoltan Varga <[EMAIL PROTECTED]>
* mini.c (mini_method_compile): Move the check for too-large methods
later.
Modified: branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog
===================================================================
--- branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog 2007-12-15
19:02:09 UTC (rev 91357)
+++ branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog 2007-12-15
19:19:09 UTC (rev 91358)
@@ -1,5 +1,7 @@
2007-12-15 Zoltan Varga <[EMAIL PROTECTED]>
+ * mini.c (mini_method_compile): Move the check for too-large methods
later.
+
* method-to-ir.c (mono_handle_global_vregs): Optimize this a little.
* liveness.c (mono_analyze_liveness): Reorganize this to improve data
locality
Modified: branches/vargaz/mini-linear-il/mono/mono/mini/mini.c
===================================================================
--- branches/vargaz/mini-linear-il/mono/mono/mini/mini.c 2007-12-15
19:02:09 UTC (rev 91357)
+++ branches/vargaz/mini-linear-il/mono/mono/mini/mini.c 2007-12-15
19:19:09 UTC (rev 91358)
@@ -12102,16 +12102,6 @@
mono_jit_stats.basic_blocks += cfg->num_bblocks;
mono_jit_stats.max_basic_blocks = MAX (cfg->num_bblocks,
mono_jit_stats.max_basic_blocks);
- if ((cfg->num_varinfo > 2000) && !cfg->compile_aot) {
- /*
- * we disable some optimizations if there are too many variables
- * because JIT time may become too expensive. The actual number
needs
- * to be tweaked and eventually the non-linear algorithms
should be fixed.
- */
- cfg->opt &= ~ (MONO_OPT_LINEARS | MONO_OPT_COPYPROP |
MONO_OPT_CONSPROP);
- cfg->disable_ssa = TRUE;
- }
-
/*g_print ("numblocks = %d\n", cfg->num_bblocks);*/
if (cfg->new_ir) {
@@ -12166,6 +12156,16 @@
}
}
+ if (((cfg->num_varinfo > 2000) || (cfg->num_bblocks > 1000)) &&
!cfg->compile_aot) {
+ /*
+ * we disable some optimizations if there are too many variables
+ * because JIT time may become too expensive. The actual number
needs
+ * to be tweaked and eventually the non-linear algorithms
should be fixed.
+ */
+ cfg->opt &= ~ (MONO_OPT_LINEARS | MONO_OPT_COPYPROP |
MONO_OPT_CONSPROP);
+ cfg->disable_ssa = TRUE;
+ }
+
if (cfg->opt & MONO_OPT_LOOP) {
mono_compile_dominator_info (cfg, MONO_COMP_DOM |
MONO_COMP_IDOM);
mono_compute_natural_loops (cfg);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches