#include "irgopt.h"
#include "irtools.h"
#include "irprintf.h"
-#include "iredges.h"
+#include "iredges_t.h"
#include "beutil.h"
#include "besched.h"
{
static pset *empty_set = NULL;
- if(!empty_set)
+ if (!empty_set)
empty_set = pset_new_ptr(1);
assert(pset_count(empty_set) == 0);
return list;
}
+
+ir_node *get_first_block_succ(const ir_node *block)
+{
+ const ir_edge_t *edge = get_irn_out_edge_first_kind(block, EDGE_KIND_BLOCK);
+ assert(edge != NULL);
+ return get_edge_src_irn(edge);
+}