X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fkaps%2Fheuristical_co.c;h=a61740ce233ab86ecd38cf4cfabc48278e10c5bc;hb=ed0e4ce9a109277e1a63f48f2aca7750f473bc6a;hp=aa30729064c569eab582527b74c9ae2a22346a13;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/kaps/heuristical_co.c b/ir/kaps/heuristical_co.c index aa3072906..a61740ce2 100644 --- a/ir/kaps/heuristical_co.c +++ b/ir/kaps/heuristical_co.c @@ -33,7 +33,7 @@ #include "bucket.h" #include "heuristical_co.h" #include "optimal.h" -#if KAPS_DUMP +#if KAPS_DUMP #include "html_dumper.h" #endif #include "kaps.h" @@ -63,7 +63,6 @@ static void merge_into_RN_node(pbqp_t *pbqp, plist_t *rpeo) plist_insert_back(rpeo, node); } while(node_is_reduced(node)); - assert(node); assert(pbqp_node_get_degree(node) > 2); /* Check whether we can merge a neighbor into the current node. */ @@ -79,12 +78,11 @@ static void apply_RN_co(pbqp_t *pbqp) node = merged_node; merged_node = NULL; - assert(node); if (node_is_reduced(node)) return; -#if KAPS_DUMP +#if KAPS_DUMP if (pbqp->dump_file) { char txt[100]; sprintf(txt, "RN-Reduction of Node n%d", node->index); @@ -95,7 +93,7 @@ static void apply_RN_co(pbqp_t *pbqp) min_index = get_local_minimal_alternative(pbqp, node); -#if KAPS_DUMP +#if KAPS_DUMP if (pbqp->dump_file) { fprintf(pbqp->dump_file, "node n%d is set to %d

\n", node->index, min_index);