fprintf(dmp->f, "chain distribution:\n");
/* add all missing entries to chain distribution table */
- for (i = 0; i < entry->n_regs; i++) {
+ for (i = 1; i <= entry->n_regs; i++) {
snprintf(buf, sizeof(buf), "length %d", i);
fprintf(dmp->f, "%12s", buf);
stat_insert_int_distrib_tbl(sum_chains, i);
fprintf(dmp->f, "cycle distribution:\n");
/* add all missing entries to cycle distribution table */
- for (i = 0; i < entry->n_regs; i++) {
+ for (i = 1; i <= entry->n_regs; i++) {
snprintf(buf, sizeof(buf), "length %d", i);
fprintf(dmp->f, "%12s", buf);
stat_insert_int_distrib_tbl(sum_cycles, i);
/* dump block permutation statistics */
simple_dump_be_block_permstat(dmp, entry);
- if (dmp->status->stat_options & FIRMSTAT_COUNT_EXTBB) {
+ if (dmp->status->stat_options & FIRMSTAT_COUNT_EXTBB && entry->extbb_hash) {
/* dump extended block info */
fprintf(dmp->f, "\n%12s %12s %12s %12s %12s %12s %12s\n", "Extbb Nr", "Nodes", "intern E", "incoming E", "outgoing E", "Phi", "quot");
foreach_pset(entry->extbb_hash, eb_entry) {