Constant propagation and address arithmetic
Richard Henderson
rth@redhat.com
Sun May 8 21:32:00 GMT 2005
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~
More information about the Gcc
mailing list