fixed CRLF
[libfirm] / ir / ana / irextbb2.c
index 0c4a05a..543b8be 100644 (file)
@@ -30,7 +30,7 @@
 typedef struct _env {
        struct obstack *obst;   /**< the obstack where allocations took place */
        ir_extblk *head;        /**< head of the list of all extended blocks */
-       exec_freq_t *execfreqs;
+       ir_exec_freq *execfreqs;
 } env_t;
 
 /**
@@ -130,6 +130,9 @@ static void pick_successor(ir_node *block, ir_extblk *extblk, env_t *env)
                ir_node *succ = get_edge_src_irn(edge);
                double execfreq;
 
+               if(irn_visited(succ))
+                       continue;
+
                if(get_Block_n_cfgpreds(succ) > 1) {
                        create_extblk(succ, env);
                        continue;
@@ -165,7 +168,7 @@ static void pick_successor(ir_node *block, ir_extblk *extblk, env_t *env)
 /*
  * Compute the extended basic blocks for a graph
  */
-void compute_extbb_execfreqs(ir_graph *irg, exec_freq_t *execfreqs) {
+void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs) {
        env_t     env;
        ir_extblk *extbb, *next;
        ir_node   *endblock;