X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillbelady3.c;h=6135e99f5d8dd0b3072f0ab2e1a5471007d0e50d;hb=952e0be71291f6475cb4c86894e43dc531eb8980;hp=3c6711edd6e49bad0968d95e0361b66efa61285a;hpb=b63f534ed3ea9e6fa94b02de8809195772f29c5a;p=libfirm diff --git a/ir/be/bespillbelady3.c b/ir/be/bespillbelady3.c index 3c6711edd..6135e99f5 100644 --- a/ir/be/bespillbelady3.c +++ b/ir/be/bespillbelady3.c @@ -53,7 +53,9 @@ #include "besched_t.h" #include "be_t.h" +#ifndef NDEBUG #define EXPENSIVE_CHECKS +#endif DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) @@ -84,7 +86,7 @@ typedef struct worklist_t worklist_t; struct worklist_t { struct list_head live_values; size_t n_live_values; - unsigned long visited; + ir_visited_t visited; }; typedef struct block_info_t block_info_t; @@ -103,7 +105,7 @@ static bool tentative_mode; static bool should_have_reached_fixpoint; static bool do_push_unused_livethroughs; static ir_exec_freq *exec_freq; -static unsigned long worklist_visited; +static ir_visited_t worklist_visited; static worklist_t *new_worklist(void) { @@ -681,7 +683,10 @@ static void find_in_loop(ir_loop *loop, ir_node *entry) } assert(found); } +#else + (void) entry; #endif + /* check all loop successors */ for (edge = loop_info->exit_edges; edge != NULL; edge = edge->next) { ir_node *succ = edge->block;