projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed indentation
[libfirm]
/
ir
/
be
/
beutil.c
diff --git
a/ir/be/beutil.c
b/ir/be/beutil.c
index
66cf3d8
..
6e6abf2
100644
(file)
--- a/
ir/be/beutil.c
+++ b/
ir/be/beutil.c
@@
-38,7
+38,7
@@
#include "irgopt.h"
#include "irtools.h"
#include "irprintf.h"
#include "irgopt.h"
#include "irtools.h"
#include "irprintf.h"
-#include "iredges.h"
+#include "iredges
_t
.h"
#include "beutil.h"
#include "besched.h"
#include "beutil.h"
#include "besched.h"
@@
-49,7
+49,7
@@
pset *be_empty_set(void)
{
static pset *empty_set = NULL;
{
static pset *empty_set = NULL;
- if(!empty_set)
+ if
(!empty_set)
empty_set = pset_new_ptr(1);
assert(pset_count(empty_set) == 0);
empty_set = pset_new_ptr(1);
assert(pset_count(empty_set) == 0);
@@
-191,3
+191,10
@@
ir_node **be_get_cfgpostorder(ir_graph *irg)
return list;
}
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);
+}