[PATCH] RHS INDIRECT_REF optimizations (PR tree-optimization/26069)

Andrew Pinski pinskia@gmail.com
Fri Jan 11 22:44:00 GMT 2008


On 1/11/08, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

I don't think this should just be done in the gimplifier.  We should
also optimize the following:
int
f1 ()
{
  unsigned x = 1;
   unsigned *xa = &x;
  return *(char *) xa;
}

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list