aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@gcc.gnu.org>2004-06-16 13:39:49 +0000
committerZdenek Dvorak <rakdver@gcc.gnu.org>2004-06-16 13:39:49 +0000
commit8a78744fcf2fe2a787ca0315dc6ab80a03c4db6a (patch)
tree98cec9a616c251331ab6174ac98fada5ebe4d5d7
parentf11e087ed68f35e0f3dc65937283226a3a323f3c (diff)
downloadgcc-8a78744fcf2fe2a787ca0315dc6ab80a03c4db6a.zip
gcc-8a78744fcf2fe2a787ca0315dc6ab80a03c4db6a.tar.gz
gcc-8a78744fcf2fe2a787ca0315dc6ab80a03c4db6a.tar.bz2
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
-rw-r--r--gcc/tree-ssa-dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 20dbb7b..3a0c1aa 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