This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling gimplify_to_stmt_list (...) on a statement containing a TARGET_MEM_REF node


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]