re PR tree-optimization/15993 ([lno] Compiler hangs at -O3)
authorZdenek Dvorak <rakdver@gcc.gnu.org>
Wed, 16 Jun 2004 13:39:49 +0000 (13:39 +0000)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Wed, 16 Jun 2004 13:39:49 +0000 (13:39 +0000)
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

index 20dbb7bd4764b917b5bbb9cda5fbe88a6d3353de..3a0c1aab6a037e98522e34c88f7949a52b7b4696 100644 (file)
@@ -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