This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PTR-PLUS merge into the mainline
Hi,
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