This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix problems with tree-sra.c with VIEW_CONVERT_EXPR
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 28 Jun 2004 09:48:59 -0400
- Subject: Re: Fix problems with tree-sra.c with VIEW_CONVERT_EXPR
- Organization: Red Hat Canada
- References: <10406281216.AA28910@vlsi1.ultra.nyu.edu>
On Mon, 2004-06-28 at 08:16, Richard Kenner wrote:
> + static bool
> + is_sra_candidate_complex_ref (tree exp, tree *var_p)
> + {
> + tree orig_exp = exp;
> +
> + while (TREE_CODE (exp) == REALPART_EXPR || TREE_CODE (exp) == IMAGPART_EXPR
> + || handled_component_p (exp))
> + exp = TREE_OPERAND (exp, 0);
> +
Why not call get_base_address here?
Diego.