X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyilp.c;h=b4242fe2b75d543e8bfb0a2cf064eb85b50210ee;hb=20aba3a7411997af46617a102d91cf05b2ebd8cb;hp=ae9dd027cefc9ac9c0b3c30ccfe70570b497335f;hpb=bc7b5ee69d084e629590a6977b79a2fab7cd1aa1;p=libfirm diff --git a/ir/be/becopyilp.c b/ir/be/becopyilp.c index ae9dd027c..b4242fe2b 100644 --- a/ir/be/becopyilp.c +++ b/ir/be/becopyilp.c @@ -106,13 +106,15 @@ size_red_t *new_size_red(copy_opt_t *co) { /** * Checks if a node is simplicial in the graph heeding the already removed nodes. */ -static inline int sr_is_simplicial(size_red_t *sr, const ir_node *ifn) { - int i, o, size = 0; - ir_node **all, *curr; - be_ifg_t *ifg = sr->co->cenv->ifg; - void *iter = be_ifg_neighbours_iter_alloca(ifg); - - all = alloca(be_ifg_degree(ifg, ifn) * sizeof(*all)); +static inline int sr_is_simplicial(size_red_t *sr, const ir_node *ifn) +{ + be_ifg_t *ifg = sr->co->cenv->ifg; + void *iter = be_ifg_neighbours_iter_alloca(ifg); + ir_node **all = ALLOCAN(ir_node*, be_ifg_degree(ifg, ifn)); + ir_node *curr; + int size = 0; + int i; + int o; /* get all non-removed neighbors */ be_ifg_foreach_neighbour(ifg, iter, ifn, curr)