From: Sebastian Buchwald Date: Fri, 23 Jan 2009 15:13:14 +0000 (+0000) Subject: Bugfix: Do not add the cost vector of a R1 reduced node to pbqp matrix row/column... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=970e9a1daf63b62af498fb3cf2cb7be2ce8bf57b;p=libfirm Bugfix: Do not add the cost vector of a R1 reduced node to pbqp matrix row/column before determine the minimum index. [r25357] --- diff --git a/heuristical.c b/heuristical.c index e20911faf..269f1fa02 100644 --- a/heuristical.c +++ b/heuristical.c @@ -1088,7 +1088,7 @@ void back_propagate_RI(pbqp *pbqp, pbqp_node *node) /* Update pointer for brute force solver. */ other = pbqp->nodes[other->index]; - vector_add_matrix_col(vec, mat, other->solution); + node->solution = pbqp_matrix_get_col_min_index(mat, other->solution, vec); } else { other = edge->src; assert(other); @@ -1096,10 +1096,9 @@ void back_propagate_RI(pbqp *pbqp, pbqp_node *node) /* Update pointer for brute force solver. */ other = pbqp->nodes[other->index]; - vector_add_matrix_row(vec, mat, other->solution); + node->solution = pbqp_matrix_get_row_min_index(mat, other->solution, vec); } - node->solution = vector_get_min_index(vec); if (pbqp->dump_file) { fprintf(pbqp->dump_file, "node n%d is set to %d
\n", node->index, node->solution); }