*
* @author Matthias Braun
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "irextbb_t.h"
#include "irgwalk.h"
#include "irnode_t.h"
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;
/**
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;
/*
* 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;