projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow several odd weak combinations
[libfirm]
/
ir
/
be
/
beifg_clique.c
diff --git
a/ir/be/beifg_clique.c
b/ir/be/beifg_clique.c
index
edd0de2
..
c8864f8
100644
(file)
--- a/
ir/be/beifg_clique.c
+++ b/
ir/be/beifg_clique.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-24,9
+24,7
@@
* @date 18.11.2005
* @version $Id$
*/
* @date 18.11.2005
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <stdlib.h>
#include <stdlib.h>
@@
-38,7
+36,7
@@
#include "irgwalk.h"
#include "irbitset.h"
#include "irgwalk.h"
#include "irbitset.h"
-#include "bearch
_t
.h"
+#include "bearch.h"
#include "be_t.h"
#include "beintlive_t.h"
#include "beifg_t.h"
#include "be_t.h"
#include "beintlive_t.h"
#include "beifg_t.h"
@@
-81,7
+79,7
@@
static cli_head_t *get_new_cli_head(ifg_clique_t *ifg)
if (ifg->cli_root == NULL)
{
if (ifg->cli_root == NULL)
{
- new_cli_head =
obstack_alloc(&ifg->obst, sizeof(*new_cli_head)
);
+ new_cli_head =
OALLOC(&ifg->obst, cli_head_t
);
INIT_LIST_HEAD(&new_cli_head->list);
ifg->cli_root = new_cli_head;
}
INIT_LIST_HEAD(&new_cli_head->list);
ifg->cli_root = new_cli_head;
}
@@
-92,7
+90,7
@@
static cli_head_t *get_new_cli_head(ifg_clique_t *ifg)
{
cli_head = cli_head->next_cli_head;
}
{
cli_head = cli_head->next_cli_head;
}
- new_cli_head =
obstack_alloc(&ifg->obst, sizeof(*new_cli_head)
);
+ new_cli_head =
OALLOC(&ifg->obst, cli_head_t
);
INIT_LIST_HEAD(&new_cli_head->list);
cli_head->next_cli_head = new_cli_head;
}
INIT_LIST_HEAD(&new_cli_head->list);
cli_head->next_cli_head = new_cli_head;
}
@@
-109,7
+107,7
@@
static cli_element_t *get_new_cli_element(ifg_clique_t *ifg)
{
cli_element_t *cli_element;
{
cli_element_t *cli_element;
- cli_element =
obstack_alloc(&ifg->obst, sizeof(*cli_element)
);
+ cli_element =
OALLOC(&ifg->obst, cli_element_t
);
INIT_LIST_HEAD(&cli_element->list);
return cli_element;
INIT_LIST_HEAD(&cli_element->list);
return cli_element;
@@
-270,8
+268,6
@@
static void find_nodes(const ifg_clique_t *ifg, cli_iter_t *it)
element = list_entry(cli_head->list.next, cli_element_t, list);
it->curr_cli_element = element;
}
element = list_entry(cli_head->list.next, cli_element_t, list);
it->curr_cli_element = element;
}
-
- return;
}
static ir_node *get_next_node(cli_iter_t *it)
}
static ir_node *get_next_node(cli_iter_t *it)
@@
-401,8
+397,6
@@
static void find_first_neighbour(const ifg_clique_t *ifg, cli_iter_t *it, const
it->curr_cli_element = element;
it->curr_irn = irn;
it->curr_cli_element = element;
it->curr_irn = irn;
-
- return;
}
static ir_node *get_next_neighbour(cli_iter_t *it)
}
static ir_node *get_next_neighbour(cli_iter_t *it)
@@
-484,8
+478,6
@@
static void ifg_clique_neighbours_break(const void *self, void *iter)
(void) self;
bitset_free(it->visited_neighbours);
(void) self;
bitset_free(it->visited_neighbours);
-
- return;
}
static ir_node *ifg_clique_nodes_begin(const void *self, void *iter)
}
static ir_node *ifg_clique_nodes_begin(const void *self, void *iter)
@@
-506,8
+498,6
@@
static void ifg_clique_nodes_break(const void *self, void *iter)
(void) self;
bitset_free(it->visited_nodes);
(void) self;
bitset_free(it->visited_nodes);
-
- return;
}
static int ifg_clique_degree(const void *self, const ir_node *irn)
}
static int ifg_clique_degree(const void *self, const ir_node *irn)
@@
-547,7
+537,7
@@
static const be_ifg_impl_t ifg_clique_impl = {
be_ifg_t *be_ifg_clique_new(const be_chordal_env_t *env)
{
be_ifg_t *be_ifg_clique_new(const be_chordal_env_t *env)
{
- ifg_clique_t *ifg =
xmalloc(sizeof(*ifg)
);
+ ifg_clique_t *ifg =
XMALLOC(ifg_clique_t
);
ifg->impl = &ifg_clique_impl;
ifg->env = env;
ifg->impl = &ifg_clique_impl;
ifg->env = env;