iropt: Remove repeated get_irn_irg().
[libfirm] / ir / ir / irdumptxt.c
index 45ed77e..ce1e6f4 100644 (file)
@@ -132,7 +132,7 @@ void dump_irnode_to_file(FILE *F, const ir_node *n)
        }
 
        /* This is not nice, output it as a marker in the predecessor list. */
-       if (is_Block(n) || get_irn_op(n) == op_Phi) {
+       if (is_Block(n) || is_Phi(n)) {
            int i;
                fprintf(F, "  backedges:");
                comma = ' ';
@@ -221,9 +221,6 @@ void dump_irnode_to_file(FILE *F, const ir_node *n)
                        }
                }
        } break;
-       case iro_Cast: {
-               ir_fprintf(F, "  cast to type: %+F\n", get_Cast_type(n));
-       } break;
        case iro_Cmp: {
                ir_relation relation = get_Cmp_relation(n);
                ir_fprintf(F, "  relation: %s\n", get_relation_string(relation));
@@ -266,7 +263,7 @@ void dump_irnode_to_file(FILE *F, const ir_node *n)
                }
        } break;
        case iro_Load:
-               fprintf(F, "  mode of loaded value: %s\n", get_mode_name_ex(get_Load_mode(n), NULL));
+               fprintf(F, "  mode of loaded value: %s\n", get_mode_name_ex(get_Load_mode(n)));
                fprintf(F, "  volatility: %s\n", get_volatility_name(get_Load_volatility(n)));
                fprintf(F, "  align: %s\n", get_align_name(get_Load_unaligned(n)));
                break;
@@ -542,26 +539,23 @@ static void dump_entity_to_file_prefix(FILE *F, ir_entity *ent, const char *pref
                        ir_graph *irg = get_entity_irg(ent);
 
                        if (irg) {
-                               fprintf(F, "%s  estimated node count: %u\n", prefix, get_irg_estimated_node_cnt(irg));
                                fprintf(F, "%s  maximum node index:   %u\n", prefix, get_irg_last_idx(irg));
                        }
 
-                       if (mask) {
-                               fprintf(F, "%s  additional prop: ", prefix);
-
-                               if (mask & mtp_property_const)         fputs("const_function, ", F);
-                               if (mask & mtp_property_pure)          fputs("pure_function, ", F);
-                               if (mask & mtp_property_noreturn)      fputs("noreturn_function, ", F);
-                               if (mask & mtp_property_nothrow)       fputs("nothrow_function, ", F);
-                               if (mask & mtp_property_naked)         fputs("naked_function, ", F);
-                               if (mask & mtp_property_malloc)        fputs("malloc_function, ", F);
-                               if (mask & mtp_property_returns_twice) fputs("weak_function, ", F);
-                               if (mask & mtp_property_intrinsic)     fputs("intrinsic_function, ", F);
-                               if (mask & mtp_property_runtime)       fputs("runtime_function, ", F);
-                               if (mask & mtp_property_private)       fputs("private_function, ", F);
-                               if (mask & mtp_property_has_loop)      fputs("has_loop_function, ", F);
-                               fputc('\n', F);
-                       }
+                       fprintf(F, "%s  additional prop: ", prefix);
+                       if (mask & mtp_property_const)         fputs("const_function, ", F);
+                       if (mask & mtp_property_pure)          fputs("pure_function, ", F);
+                       if (mask & mtp_property_noreturn)      fputs("noreturn_function, ", F);
+                       if (mask & mtp_property_nothrow)       fputs("nothrow_function, ", F);
+                       if (mask & mtp_property_naked)         fputs("naked_function, ", F);
+                       if (mask & mtp_property_malloc)        fputs("malloc_function, ", F);
+                       if (mask & mtp_property_returns_twice) fputs("weak_function, ", F);
+                       if (mask & mtp_property_intrinsic)     fputs("intrinsic_function, ", F);
+                       if (mask & mtp_property_runtime)       fputs("runtime_function, ", F);
+                       if (mask & mtp_property_private)       fputs("private_function, ", F);
+                       if (mask & mtp_property_has_loop)      fputs("has_loop_function, ", F);
+                       fputc('\n', F);
+
                        fprintf(F, "%s  calling convention: ", prefix);
                        if (cc & cc_reg_param)           fputs("regparam, ", F);
                        if (cc & cc_this_call)           fputs("thiscall, ", F);