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: Could we use VIEW_CONVERT_EXPR to build ADDR_EXPR ?


On Fri, 20 Aug 2010, Fang, Changpeng wrote:

> 
> 
> ________________________________________
> 
> >No you should not generate addresses for VCEs that contain a SSA_NAME.
> > I think you should check if get_base_address is a
> >is_gimple_addressable inside gather_memory_references_ref.
> 
> There, TREE_CODE ( get_base_address (ref)) == SSA_NAME
>  
> and get_base_address (ref) is is_gimple_addressable.
> 
> However, address expression containing SSA_NAME is NOT considered
> as a gimple address.

You simply can't take an address of such thing.  Look at IVOPTs,
it has measures to avoid this stuff.

Richard.


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