This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Calling gimplify_to_stmt_list (...) on a statement containing a TARGET_MEM_REF node
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Roberto COSTA <roberto dot costa at st dot com>, Andrew Pinski <pinskia at physics dot uc dot edu>, GCC mailing list <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Jul 2006 13:45:50 +0200
- Subject: Re: Calling gimplify_to_stmt_list (...) on a statement containing a TARGET_MEM_REF node
- References: <44B7C94A.8020906@dberlin.org>
Hello,
> Roberto COSTA wrote:
> > Andrew Pinski wrote:
> >> On Jul 14, 2006, at 11:01 PM, Roberto COSTA wrote:
> >>
> >>> Is it a bug... or am I trying to do something wrong?
> >>
> >> Why are you trying to regimplify something which is in gimple?
> >
> > I'm trying to generate new code, which happens to contain TARGET_MEM_REF.
> > To do that, I find more convenient to generate a big and deep tree and
> > to gimplify it later (I saw other passes follow this approach).
>
> Passes that absolutely need to do it, should, others probably shouldn't.
> It generally is a waste of time and memory to do it if your pass can
> simply generate piecewise GIMPLE expressions on it's own.
>
> Anyway, ignoring Andrew's tangent for a moment, this is a bug.
not really a bug, just the gimplifying of TARGET_MEM_REFs was not
implemented (since nobody needed it so far).
Zdenek