From: Michael Beck Date: Thu, 15 Sep 2005 12:14:23 +0000 (+0000) Subject: dump now jump prediction, Free place (stack/heap) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d6c483eaefc4d764bab68dac3bbbd0108460b732;p=libfirm dump now jump prediction, Free place (stack/heap) [r6625] --- diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index 69f678e7e..c0392d665 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -874,6 +874,12 @@ handle_lut: } if (! f) fprintf (F, "%ld ", proj_nr); + if (code == iro_Cond && get_Cond_jmp_pred(pred) != COND_JMP_PRED_NONE) { + if (proj_nr == pn_Cond_false && get_Cond_jmp_pred(pred) == COND_JMP_PRED_FALSE) + fprintf(F, "PRED "); + if (proj_nr == pn_Cond_true && get_Cond_jmp_pred(pred) == COND_JMP_PRED_TRUE) + fprintf(F, "PRED "); + } } break; case iro_Filter: diff --git a/ir/ir/irdumptxt.c b/ir/ir/irdumptxt.c index 597ec6c66..559fceed8 100644 --- a/ir/ir/irdumptxt.c +++ b/ir/ir/irdumptxt.c @@ -206,6 +206,8 @@ int dump_irnode_to_file(FILE *F, ir_node *n) { case iro_Cond: { fprintf(F, " condition kind: %s\n", get_Cond_kind(n) == dense ? "dense" : "fragmentary"); fprintf(F, " default ProjNr: %ld\n", get_Cond_defaultProj(n)); + if (get_Cond_jmp_pred(n) != COND_JMP_PRED_NONE) + fprintf(F, " jump prediction: %s\n", get_cond_jmp_predicate_name(get_Cond_jmp_pred(n))); } break; case iro_Alloc: { fprintf(F, " allocating entity of type: %s \n", get_type_name_ex(get_Alloc_type(n), &bad)); @@ -213,6 +215,7 @@ int dump_irnode_to_file(FILE *F, ir_node *n) { } break; case iro_Free: { fprintf(F, " freeing entity of type %s \n", get_type_name_ex(get_Free_type(n), &bad)); + fprintf(F, " allocated on: the %s\n", (get_Free_where(n) == stack_alloc) ? "stack" : "heap"); } break; case iro_Sel: { entity *ent = get_Sel_entity(n);