From: Zdenek Dvorak Date: Wed, 16 Jun 2004 13:39:49 +0000 (+0000) Subject: re PR tree-optimization/15993 ([lno] Compiler hangs at -O3) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a78744fcf2fe2a787ca0315dc6ab80a03c4db6a;p=gcc.git re PR tree-optimization/15993 ([lno] Compiler hangs at -O3) PR tree-optimization/15993 * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its destination is unchanged. From-SVN: r83242 --- diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 20dbb7bd476..3a0c1aab6a0 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -924,7 +924,7 @@ thread_across_edge (struct dom_walk_data *walk_data, edge e) edge taken_edge = find_taken_edge (e->dest, cached_lhs); basic_block dest = (taken_edge ? taken_edge->dest : NULL); - if (dest == e->src) + if (dest == e->dest) return; /* If we have a known destination for the conditional, then