projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed debug output of unary x87 nodes
[libfirm]
/
ir
/
be
/
beifg_std.c
diff --git
a/ir/be/beifg_std.c
b/ir/be/beifg_std.c
index
8feeefa
..
e040888
100644
(file)
--- a/
ir/be/beifg_std.c
+++ b/
ir/be/beifg_std.c
@@
-41,7
+41,8
@@
static void ifg_std_free(void *self)
static int ifg_std_connected(const void *self, const ir_node *a, const ir_node *b)
{
static int ifg_std_connected(const void *self, const ir_node *a, const ir_node *b)
{
- return values_interfere(a, b);
+ const ifg_std_t *ifg = self;
+ return values_interfere(ifg->env->lv, a, b);
}
typedef struct _nodes_iter_t {
}
typedef struct _nodes_iter_t {
@@
-77,6
+78,7
@@
static void find_nodes(const void *self, void *iter) {
it->env = ifg->env;
irg_block_walk_graph(ifg->env->irg, nodes_walker, NULL, iter);
it->env = ifg->env;
irg_block_walk_graph(ifg->env->irg, nodes_walker, NULL, iter);
+ obstack_ptr_grow(&it->obst, NULL);
it->nodes = obstack_finish(&it->obst);
}
it->nodes = obstack_finish(&it->obst);
}
@@
-132,7
+134,7
@@
static void find_neighbour_walker(ir_node *block, void *data)
border_t *b;
int has_started = 0;
border_t *b;
int has_started = 0;
- if(!
is_live_in(
block, it->irn) && block != get_nodes_block(it->irn))
+ if(!
be_is_live_in(it->env->lv,
block, it->irn) && block != get_nodes_block(it->irn))
return;
foreach_border_head(head, b) {
return;
foreach_border_head(head, b) {
@@
-235,7
+237,7
@@
static INLINE int get_next_clique(cliques_iter_t *it) {
int output_on_shrink = 0;
struct list_head *head = get_block_border_head(it->cenv, it->blocks[it->blk]);
int output_on_shrink = 0;
struct list_head *head = get_block_border_head(it->cenv, it->blocks[it->blk]);
- /* on entry to a new block set the first border ...
+ /* on entry to a new block set the first border ...
*/
if (!it->bor)
it->bor = head->prev;
if (!it->bor)
it->bor = head->prev;
@@
-284,7
+286,7
@@
static int ifg_std_cliques_begin(const void *self, void *iter, ir_node **buf)
{
const ifg_std_t *ifg = self;
cliques_iter_t *it = iter;
{
const ifg_std_t *ifg = self;
cliques_iter_t *it = iter;
- ir_node *start_bl = get_irg_start_block(i
t->c
env->irg);
+ ir_node *start_bl = get_irg_start_block(i
fg->
env->irg);
obstack_init(&it->ob);
dom_tree_walk(start_bl, get_blocks_dom_order, NULL, it);
obstack_init(&it->ob);
dom_tree_walk(start_bl, get_blocks_dom_order, NULL, it);
@@
-342,7
+344,7
@@
static const be_ifg_impl_t ifg_std_impl = {
be_ifg_t *be_ifg_std_new(const be_chordal_env_t *env)
{
be_ifg_t *be_ifg_std_new(const be_chordal_env_t *env)
{
- ifg_std_t *ifg = malloc(sizeof(*ifg));
+ ifg_std_t *ifg =
x
malloc(sizeof(*ifg));
ifg->impl = &ifg_std_impl;
ifg->env = env;
ifg->impl = &ifg_std_impl;
ifg->env = env;