This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23940] SSA_NAMEs are not released after no longer being used.
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2005 16:05:10 -0000
- Subject: [Bug tree-optimization/23940] SSA_NAMEs are not released after no longer being used.
- References: <20050918005013.23940.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at physics dot uc dot edu 2005-09-19 16:05 -------
Subject: Re: SSA_NAMEs are not released after no longer being used.
On Sep 19, 2005, at 11:59 AM, amacleod at redhat dot com wrote:
> We also probably have to set SSA_NAME_DEF_STMT to NULL in bsi_remove
> in order to
> be sure that an SSA name with no uses isn't actually associated with a
> stmt any
> more (you can have valid defs with no uses). It is set when the
> SSA_NAME is
> created, but I don't think that field ever gets cleared anywhere else.
Except that does not work as mentioned before as people do bsi_remove
and then bsi_insert on the same staement when moving the statement
around.
And isn't that the same thing as adding release_defs in bsi_remove?
And that will not work for the SSA_NAMEs used for aliasing and then the
variable becomes a gimple register.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23940