From 8a78744fcf2fe2a787ca0315dc6ab80a03c4db6a Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Wed, 16 Jun 2004 13:39:49 +0000 Subject: [PATCH] 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 --- gcc/tree-ssa-dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2