X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Floop_unrolling.c;h=7e52ea5166bc5cbc13a16b1d01fe40e6970475f5;hb=ef4cfdedf59f357727d1f5f53032c4fbd6774aed;hp=dfd7a58328914eb0e428c6b69ae8ff0ca8001bc9;hpb=eb08138c6b80c169945568e4414f491a9bc20388;p=libfirm diff --git a/ir/opt/loop_unrolling.c b/ir/opt/loop_unrolling.c index dfd7a5832..7e52ea516 100644 --- a/ir/opt/loop_unrolling.c +++ b/ir/opt/loop_unrolling.c @@ -34,12 +34,9 @@ #include "config.h" #endif -#ifdef HAVE_STRING_H #include -#endif - -#include "loop_unrolling.h" +#include "iroptimize.h" #include "irnode_t.h" #include "irgwalk.h" #include "ircons.h" @@ -50,7 +47,7 @@ #include "trouts.h" #include "hashptr.h" #include "pset.h" -#include "strength_red.h" +#include "strength_red_t.h" #include "compute_loop_info.h" #include "irdump.h" #include "irtools.h" @@ -75,6 +72,7 @@ static int set_cmp(const void *elt, const void *key, size_t size) { const copies_t *c1 = elt; const copies_t *c2 = key; + (void) size; return c1->irn != c2->irn; } @@ -115,6 +113,8 @@ set_preds (set *l_n, copies_t *value, induct_var_info *info, int unroll_factor, ir_node *loop_head; int i, p, irn_arity; copies_t key, *value_pred; + (void) env; + if(value->copy[0] == NULL || get_irn_op(value->irn) != get_irn_op(value->copy[0])) return;