This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] remove get_base_var/get_base_decl
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 11 Mar 2004 08:07:06 -0500
- Subject: Re: [tree-ssa] remove get_base_var/get_base_decl
- References: <20040311053023.GA31895@redhat.com>
On Thu, 2004-03-11 at 00:30, Richard Henderson wrote:
> There was exactly one valid use of these functions, the one in set_is_used.
> Even there, it might be better to use walk_tree, since we're not currently
> marking the index of ARRAY_REFs. Andrew, is that something we should be
> concerned about in callers of this function?
I think all my uses of set_is_used() are guaranteed to be on operands or
PHI componenets. So as long as we are marking indexes which are
variables as operands, (which we must be) it ought to be OK.
set_is_used() ought only be called on scalar variables used as operands
or PHI results/arguments. Things that end up in partitions.
Can we get a non-scalar in a non-virtual PHI? I recently learned we can
have more than I expected there... in the form of constant expressions.
I can't picture there being a scalar variable we care about in a
We ought to be OK.