This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Constant propagation and address arithmetic
On Sun, May 08, 2005 at 10:06:04PM +0200, Steven Bosscher wrote:
> A test case that shows what is going on is this:
>
> extern char *x;
> void
> foo (char *a, char *b)
> {
> if (!x)
> x = a;
> else
> x = b;
> }
This test case doesn't show anything. .04.cse merges all the high parts
of x, and none of the gcse passes do anything. Unless you're working with
some modified tree?
r~