if ((get_irp_ip_view_state() != ip_view_no)
&& (get_irn_opcode(n) == iro_Filter || get_irn_opcode(n) == iro_Block)) {
- fprintf(F, " inter arity: %d", get_irn_inter_arity(n));
+ fprintf(F, " inter arity: %d\n", get_irn_inter_arity(n));
fprintf(F, " inter pred nodes: \n");
for ( i = 0; i < get_irn_inter_arity(n); ++i) {
fprintf(F, " %d: %s ", i, is_intra_backedge(n, i) ? "be" : " ");
fprintf(F, "\n");
}
- /* Loop node Someone else please tell me what's wrong ...
+ /* Loop node. Someone else please tell me what's wrong ... */
if (get_irn_loop(n)) {
ir_loop *loop = get_irn_loop(n);
assert(loop);
- fprintf(F, " in loop %d with depth %d\n",
+ fprintf(F, " in loop %d with depth %d\n",
get_loop_loop_nr(loop), get_loop_depth(loop));
}
- */
+
/* Source types */
switch (get_irn_opcode(n)) {
case iro_Block: {
- fprintf(F, " block visited: %ld", get_Block_block_visited(n));
- fprintf(F, " dominator info: not implemented\n");
+ fprintf(F, " block visited: %ld\n", get_Block_block_visited(n));
+ fprintf(F, " dominator info: output not implemented\n");
/* not dumped: graph_arr */
/* not dumped: mature */
} break;
max_depth = (depth > max_depth) ? depth : max_depth ;
}
- L_freq = xmalloc(sizeof(*L_freq) * 4 * max_depth);
- memset(L_freq, 0, sizeof(*L_freq) * 4 * max_depth);
+ L_freq = xcalloc(4 * max_depth, sizeof(L_freq[0]));
S_freq = L_freq + 1*max_depth;
LA_freq = L_freq + 2*max_depth;
max_depth = (depth > max_depth) ? depth : max_depth ;
}
- L_freq = xmalloc(sizeof(*L_freq) * 4 * max_depth);
- memset(L_freq, 0, sizeof(*L_freq) * 4 * max_depth);
+ L_freq = xcalloc(4 * max_depth, sizeof(L_freq[0]));
S_freq = L_freq + 1*max_depth;
LA_freq = L_freq + 2*max_depth;
max_depth = (depth > max_depth) ? depth : max_depth ;
}
- freq = xmalloc(sizeof(*freq) * 2 * max_depth);
- memset(freq, 0, sizeof(*freq) * 2 * max_depth);
+ freq = xcalloc(2 * max_depth, sizeof(freq[0]));
disp = freq + max_depth;
max_depth = (depth > max_depth) ? depth : max_depth ;
}
- freq = xmalloc(sizeof(*freq) * max_depth);
- memset(freq, 0, sizeof(*freq) * max_depth);
+ freq = xcalloc(max_depth, sizeof(freq[0]));
for (i = 0; i < n_all; ++i) {
ir_node *all = get_type_allocation(tp, i);