This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on scalar replacement
- From: Richard Henderson <rth at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Mon, 14 Jun 2004 10:39:50 -0700
- Subject: Re: Question on scalar replacement
- References: <10406141407.AA05618@vlsi1.ultra.nyu.edu> <1087222653.22679.69.camel@localhost.localdomain>
On Mon, Jun 14, 2004 at 10:17:34AM -0400, Diego Novillo wrote:
> Jason, is a.f = foo() valid GIMPLE? If not, then the bug is in the
> gimplifier. Otherwise, the patch I sent should be OK.
We can do better than your patch. If is_sra_candidate_ref, we
can scalarize
s.f = foo()
to
SR.105 = foo()
rather than
s.f = foo()
SR.100 = s.a;
SR.101 = s.b;
SR.102 = s.c;
SR.103 = s.d;
SR.104 = s.e;
SR.105 = s.f;
r~