This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15993] [lno] Compiler hangs at -O3
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2004 23:22:28 -0000
- Subject: [Bug tree-optimization/15993] [lno] Compiler hangs at -O3
- References: <20040615012849.15993.dalej@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rakdver at gcc dot gnu dot org 2004-06-15 23:22 -------
The following patch fixes the problem; I will commit it as obvious provided
that it passes testing.
Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dom.c,v
retrieving revision 1.1.2.102.2.8
diff -c -3 -p -r1.1.2.102.2.8 tree-ssa-dom.c
*** tree-ssa-dom.c 14 Jun 2004 01:58:15 -0000 1.1.2.102.2.8
--- tree-ssa-dom.c 15 Jun 2004 23:19:33 -0000
*************** thread_across_edge (struct dom_walk_data
*** 931,937 ****
edge taken_edge = find_taken_edge (e->dest, cached_lhs);
basic_block dest = (taken_edge ? taken_edge->dest : NULL);
! if (dest == e->src)
return;
/* If we have a known destination for the conditional, then
--- 931,937 ----
edge taken_edge = find_taken_edge (e->dest, cached_lhs);
basic_block dest = (taken_edge ? taken_edge->dest : NULL);
! if (dest == e->dest)
return;
/* If we have a known destination for the conditional, then
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15993