- removed rest of already unsupported USE_EXPLICIT_PHI_IN_STACK
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Oct 2008 14:03:24 +0000 (14:03 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Oct 2008 14:03:24 +0000 (14:03 +0000)
[r23326]

ir/ir/ircons.c
ir/ir/irgraph.c
ir/ir/irtypes.h

index 7947f38..e060638 100644 (file)
 #include "iredges_t.h"
 #include "irflag_t.h"
 
-#if USE_EXPLICIT_PHI_IN_STACK
-/* A stack needed for the automatic Phi node construction in constructor
-   Phi_in. Redefinition in irgraph.c!! */
-struct Phi_in_stack {
-       ir_node **stack;
-       int       pos;
-};
-typedef struct Phi_in_stack Phi_in_stack;
-#endif
-
 /* when we need verifying */
 #ifdef NDEBUG
 # define IRN_VRFY_IRG(res, irg)
index 155fded..f622f0d 100644 (file)
@@ -141,13 +141,6 @@ static void free_graph(ir_graph *irg) {
        free(ptr - additional_graph_data_size);
 }
 
-#if USE_EXPLICIT_PHI_IN_STACK
-/* really defined in ircons.c */
-typedef struct Phi_in_stack Phi_in_stack;
-Phi_in_stack *new_Phi_in_stack();
-void free_Phi_in_stack(Phi_in_stack *s);
-#endif
-
 /**
  * Set the number of locals for a given graph.
  *
@@ -210,10 +203,6 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) {
        res->visited       = 0; /* visited flag, for the ir walker */
        res->block_visited = 0; /* visited flag, for the 'block'-walker */
 
-#if USE_EXPLICIT_PHI_IN_STACK
-       res->Phi_in_stack = new_Phi_in_stack();  /* A stack needed for automatic Phi
-                                                   generation */
-#endif
        res->extbb_obst = NULL;
 
        res->last_node_idx = 0;
@@ -320,9 +309,6 @@ ir_graph *new_const_code_irg(void) {
        res->n_loc = 1;         /* Only the memory. */
        res->visited = 0;       /* visited flag, for the ir walker */
        res->block_visited = 0; /* visited flag, for the 'block'-walker */
-#if USE_EXPLICIT_PHI_IN_STACK
-       res->Phi_in_stack = NULL;
-#endif
        res->obst       = XMALLOC(struct obstack);
        obstack_init (res->obst);
        res->extbb_obst = NULL;
@@ -471,9 +457,6 @@ ir_graph *create_irg_copy(ir_graph *irg) {
        res->n_loc = 0;
        res->visited = 0;       /* visited flag, for the ir walker */
        res->block_visited = 0; /* visited flag, for the 'block'-walker */
-#if USE_EXPLICIT_PHI_IN_STACK
-       res->Phi_in_stack = NULL;
-#endif
        res->obst       = XMALLOC(struct obstack);
        obstack_init(res->obst);
        res->extbb_obst = NULL;
@@ -557,9 +540,6 @@ void free_ir_graph(ir_graph *irg) {
        free_End(get_irg_end(irg));
        obstack_free(irg->obst,NULL);
        free(irg->obst);
-#if USE_EXPLICIT_PHI_IN_STACK
-       free_Phi_in_stack(irg->Phi_in_stack);
-#endif
        if (irg->loc_descriptions)
                free(irg->loc_descriptions);
        irg->kind = k_BAD;
index eade5fa..1dd5178 100644 (file)
@@ -460,9 +460,6 @@ struct ir_graph {
        unsigned fp_model;                       /**< floating point model of the graph. */
 
        /* -- Fields for construction -- */
-#if USE_EXPLICIT_PHI_IN_STACK
-       struct Phi_in_stack *Phi_in_stack; /**< Needed for automatic Phi construction. */
-#endif
        int n_loc;                         /**< Number of local variables in this
                                                procedure including procedure parameters. */
        void **loc_descriptions;           /**< Storage for local variable descriptions. */
@@ -480,11 +477,11 @@ struct ir_graph {
        unsigned *caller_isbe;             /**< For callgraph analysis: raw bitset if backedge info calculated. */
        cg_callee_entry **callees;         /**< For callgraph analysis: list of callee calls */
        unsigned *callee_isbe;             /**< For callgraph analysis: raw bitset if backedge info calculated. */
+       ir_loop   *l;                            /**< For callgraph analysis. */
        int        callgraph_loop_depth;         /**< For callgraph analysis */
        int        callgraph_recursion_depth;    /**< For callgraph analysis */
        double     method_execution_frequency;   /**< For callgraph analysis */
 
-       ir_loop   *l;                            /**< For callgraph analysis. */
 
        /* -- Fields for Walking the graph -- */
        ir_visited_t visited;             /**< this flag is an identifier for