#include "pattern.h"
#include "dags.h"
#include "stat_dmp.h"
+#include "xmalloc.h"
/*
* need this to be static:
*/
static ir_op _op_Phi0;
-/** The PhiM, just to count memorty Phi's. */
+/** The PhiM, just to count memory Phi's. */
static ir_op _op_PhiM;
/** The Mul by Const node. */
}
/**
- * Returns the acssociates graph_entry_t for an irg
+ * Returns the associated graph_entry_t for an irg
*/
static graph_entry_t *graph_get_entry(ir_graph *irg, pset *set)
{
}
/**
- * Returns the associates opt_entry_t for an ir_op
+ * Returns the associated opt_entry_t for an ir_op
*/
static opt_entry_t *opt_get_entry(const ir_op *op, pset *set)
{
}
/**
- * Returns the associates block_entry_t for an block
+ * Returns the associated block_entry_t for an block
*/
static block_entry_t *block_get_entry(long block_nr, pset *set)
{
ir_graph *callee = NULL;
/*
- * If the block is bad, the whole subgraph will colabse later
+ * If the block is bad, the whole subgraph will collapse later
* so do not count this call.
* This happens in dead code.
*/
ir_graph *callee = NULL;
/*
- * If the block is bad, the whole subgraph will colabse later
+ * If the block is bad, the whole subgraph will collapse later
* so do not count this call.
* This happens in dead code.
*/
}
/**
- * walker for reachable nodes count for graphs on teh wait_q
+ * walker for reachable nodes count for graphs on the wait_q
*/
static void update_node_stat_2(ir_node *node, void *env)
{
*/
static void stat_register_dumper(const dumper_t *dumper)
{
- dumper_t *p = malloc(sizeof(*p));
+ dumper_t *p = xmalloc(sizeof(*p));
if (p) {
*p = *dumper;
}
/**
- * initialise the dumper
+ * initialize the dumper
*/
static void stat_dump_init(const char *name)
{
}
}
- /* some calculations are dependant, we pushed them on the wait_q */
+ /* some calculations are dependent, we pushed them on the wait_q */
while (! pdeq_empty(status->wait_q)) {
entry = pdeq_getr(status->wait_q);