From: Christoph Mallon Date: Thu, 14 Apr 2011 17:36:39 +0000 (+0200) Subject: Try fixing if-conversion in presence of endless loops. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=cbad01fa81e0fab4a1a9b24318fd71b500cdfe81;p=libfirm Try fixing if-conversion in presence of endless loops. Merge the lower block into the upper block (instead of the other way round), so we do not turn the upper block, which might still be in the DFS stack, into and ID node. --- diff --git a/ir/opt/ifconv.c b/ir/opt/ifconv.c index 0d1307a9a..7c2185fa8 100644 --- a/ir/opt/ifconv.c +++ b/ir/opt/ifconv.c @@ -400,7 +400,7 @@ restart: if (arity == 2) { unsigned mark; -#if 1 +#if 0 DB((dbg, LEVEL_1, "Welding block %+F and %+F\n", block, mux_block)); /* copy the block-info from the Mux-block to the block before merging */