* Alternative algorithm for computing extended basic blocks (using out edges
* and execution frequencies)
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include "irextbb_t.h"
#include "irgwalk.h"
{
ir_extblk *extblk;
- if (irn_visited(block))
+ if (irn_visited_else_mark(block))
return;
extblk = allocate_extblk(block, env);
- mark_irn_visited(block);
pick_successor(block, extblk, env);
}
/* the end block needs a extbb assigned (even for endless loops) */
endblock = get_irg_end_block(irg);
- if (! irn_visited(endblock)) {
- create_extblk(endblock, &env);
- }
+ create_extblk(endblock, &env);
/*
Ok, we have now the list of all extended blocks starting with env.head