This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Could we use VIEW_CONVERT_EXPR to build ADDR_EXPR ?
- From: Andrew Pinski <pinskia at gmail dot com>
- To: "Fang, Changpeng" <Changpeng dot Fang at amd dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "rguenther at suse dot de" <rguenther at suse dot de>, Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- Date: Thu, 19 Aug 2010 17:11:43 -0700
- Subject: Re: Could we use VIEW_CONVERT_EXPR to build ADDR_EXPR ?
- References: <D4C76825A6780047854A11E93CDE84D05B04FB41@SAUSEXMBP01.amd.com>
On Thu, Aug 19, 2010 at 4:55 PM, Fang, Changpeng <Changpeng.Fang@amd.com> wrote:
> My questions are:
>
> (1) Can we generate address expression for COMPONENT_REF and contains VIEW_CONVERT
> Â Â Âexpression (is it legal to do so)?
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.
Thanks,
Andrew Pinski