This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/20640] [4.0 Regression] ICE on NULL PHI_ARG_DEF
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2005 18:00:48 -0000
- Subject: [Bug tree-optimization/20640] [4.0 Regression] ICE on NULL PHI_ARG_DEF
- References: <20050325205712.20640.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From law at redhat dot com 2005-03-31 18:00 -------
Subject: Re: [PR tree-optimization/20640] add phi args to dests of
dce-redirected edges
On Thu, 2005-03-31 at 05:26 -0300, Alexandre Oliva wrote:
> On Mar 31, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:
[ ... ]
> Anyway, how does this patch look?
> Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
PR tree-optimization/20640
* tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
post-dominator if it has phi nodes.
(eliminate_unnecessary_stmts): Remove dead phis in all blocks
before dead statements.
BTW, if you want to go forward with this version, it looks OK to me
assuming it passes bootstrapping and regression testing.
Jeff
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20640