PTR-PLUS merge into the mainline

Roman Zippel
Thu Jul 5 20:37:00 GMT 2007


On Thu, 5 Jul 2007, Richard Guenther wrote:

> Well, that's always the nature of any canonicalization.

Well, I can't say that I agree with your canonicalization, but...

> of course only tested on this particular testcase.  It just shows
> that it is possible to fix this in a generic way.

let's take the particular test case I care about:

int foo(int *p, unsigned int i)
	return p[i + 1] + p[i + 2];

How should this be optimized within the context of your canonicalization?

bye, Roman

More information about the Gcc mailing list