This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] moving phi nodes?
- From: law at redhat dot com
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 15 Jan 2004 11:44:29 -0700
- Subject: Re: [tree-ssa] moving phi nodes?
- Reply-to: law at redhat dot com
In message <20031116062517.GA2111@redhat.com>, Richard Henderson writes:
>One jump threading case that we're currently missing, sorely,
>is of the form:
>
>int foo(int p, int q)
>{
> int i = 0;
> if (p)
> i = q;
> if (i != 0)
> bar ();
> return i;
>}
>
>From the t28.dce2 dump:
[ ... ]
FWIW, I just checked in an improvement to the dominator optimizer which
should optimize this case.
jeff