* @date 5.2005
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include "irextbb_t.h"
#include "irgwalk.h"
#include "xmalloc.h"
#include "irprintf.h"
+/**
+ * Environment for extbb construction.
+ */
typedef struct _env {
struct obstack *obst; /**< the obstack where allocations took place */
ir_extblk *head; /**< head of the list of all extended blocks */
*/
ir_node *cf_op = skip_Proj(get_Block_cfgpred(block, 0));
- if (irn_not_visited(cf_op)) {
+ if (!irn_visited_else_mark(cf_op)) {
ir_node *pred_bl = get_nodes_block(cf_op);
if (get_block_n_succs(pred_bl) > 2) {
/* More than two successors means we have a jump table.
*/
set_Block_extbb(block, NULL);
}
- mark_irn_visited(cf_op);
} else {
/* already marked, so begin a new extended block here */
allocate_extblk(block, env);