- snprintf(buf, sizeof(buf), "%s.phistat", get_entity_name(get_irg_entity(irg)));
- //phi_stat_dump_pretty(buf);
- phi_stat_dump(buf, CUMULATIVE_FILE);
+#ifdef DUMP_IRG_PHI_STAT
+ {
+ char buf[1024];
+ snprintf(buf, sizeof(buf), "%s.phistat", get_entity_name(get_irg_entity(irg)));
+ //phi_stat_dump(buf);
+ phi_stat_dump_pretty(buf);
+ }
+#endif
+#ifdef DUMP_CUMULATIVE
+ phi_stat_update(CUMULATIVE_FILE);
+#endif
+ phi_stat_update(getenv(ENV_PHI_STAT));
+#endif
+