From: Christoph Mallon Date: Mon, 6 Oct 2008 07:02:14 +0000 (+0000) Subject: Do not stress tail recursion elimination and partial condition evaluation too much... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=500b49a936010d1dddeca622bacc5e233ca602f9;p=libfirm Do not stress tail recursion elimination and partial condition evaluation too much (though it is a good testcase and we fail). [r22510] --- diff --git a/kaps.c b/kaps.c index 0b8938d95..3fcd1395c 100644 --- a/kaps.c +++ b/kaps.c @@ -19,7 +19,9 @@ pbqp_edge *get_edge(pbqp *pbqp, unsigned src_index, unsigned tgt_index) int len; if (tgt_index < src_index) { - return get_edge(pbqp, tgt_index, src_index); + unsigned tmp = src_index; + src_index = tgt_index; + tgt_index = tmp; } pbqp_node *src_node = get_node(pbqp, src_index);