This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/20640] [4.0 Regression] ICE on NULL PHI_ARG_DEF


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]