* @file
* @brief Provides several statistic functions for the backend.
* @author Christian Wuerdig, Matthias Braun
- * @version $Id$
*/
#include "config.h"
if (max_live > env->max_pressure)
env->max_pressure = max_live;
-#ifdef FIRM_STATISTICS
stat_be_block_regpressure(irg, block, max_live, cls->name);
-#endif
ir_nodeset_destroy(&live_nodes);
}
} else {
(*stats)[BE_STAT_PHIS]++;
}
- } else if (!is_Proj(irn)) {
- arch_irn_class_t classify = arch_irn_classify(irn);
-
- if (classify & arch_irn_class_spill)
- (*stats)[BE_STAT_SPILLS]++;
- if (classify & arch_irn_class_reload)
- (*stats)[BE_STAT_RELOADS]++;
- if (classify & arch_irn_class_remat)
- (*stats)[BE_STAT_REMATS]++;
- if (classify & arch_irn_class_copy)
- (*stats)[BE_STAT_COPIES]++;
- if (classify & arch_irn_class_perm)
- (*stats)[BE_STAT_PERMS]++;
+ } else if (be_is_Perm(irn)) {
+ (*stats)[BE_STAT_PERMS]++;
+ } else if (be_is_Copy(irn)) {
+ (*stats)[BE_STAT_COPIES]++;
}
}
case BE_STAT_MEM_PHIS: return "mem_phis";
case BE_STAT_COPIES: return "copies";
case BE_STAT_PERMS: return "perms";
- case BE_STAT_SPILLS: return "spills";
- case BE_STAT_RELOADS: return "reloads";
- case BE_STAT_REMATS: return "remats";
default: panic("unknown stat tag found");
}
}