Fix simplify_edge(): Delete an independent edge, even if we are not dumping this...
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 6 Oct 2008 07:26:46 +0000 (07:26 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 6 Oct 2008 07:26:46 +0000 (07:26 +0000)
[r22514]

heuristical.c

index 925b26d..9fd7a6e 100644 (file)
@@ -254,11 +254,11 @@ static void simplify_edge(pbqp *pbqp, pbqp_edge *edge)
        if (pbqp_matrix_is_zero(mat, src_vec, tgt_vec)) {
                if (pbqp->dump_file) {
                        fputs("edge has been eliminated", pbqp->dump_file);
-
-                       delete_edge(edge);
-                       reorder_node(src_node);
-                       reorder_node(tgt_node);
                }
+
+               delete_edge(edge);
+               reorder_node(src_node);
+               reorder_node(tgt_node);
        }
 }