This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in loop invariant motion with trivial test case
- From: Richard Henderson <rth at redhat dot com>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, rakdver at atrey dot karlin dot mff dot cuni dot cz, gcc at gcc dot gnu dot org
- Date: Thu, 12 Aug 2004 13:44:54 -0700
- Subject: Re: Bug in loop invariant motion with trivial test case
- References: <10408121018.AA06579@vlsi1.ultra.nyu.edu> <200408122240.08217.stevenb@suse.de>
On Thu, Aug 12, 2004 at 10:40:08PM +0200, Steven Bosscher wrote:
> I'm wondering if we really want to apply this optimization to
> aggregate types if they appear as an lvalue, because the
> replacement temporary is itself also an aggregate, and it can
> never be a register. So perhaps something like this,
If aggregate_type_p (as opposed to AGGREGATE_TYPE_P) is true,
then the value is returned in registers, otherwise in memory.
r~