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

Daniel Berlin dberlin@dberlin.org
Fri Jul 14 17:10:00 GMT 2006


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.

:)



More information about the Gcc mailing list