This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/39689] IPA should compute if a function may recurse
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Apr 2009 16:10:42 -0000
- Subject: [Bug tree-optimization/39689] IPA should compute if a function may recurse
- References: <bug-39689-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from hubicka at ucw dot cz 2009-04-08 16:10 -------
Subject: Re: New: IPA should compute if a function may recurse
While testing for possible recurssion can definitly be added (and it
will return true on everything that might lead to call outsie of visible
unit), there is problem with using it on local statics.
Inlining of function can distribute use of local static pretty much
everywhere, so value of origin of local static for optimization is quite
zero. Of course one can track what functions reffers to the given
variable and then one needs to track if function A referring to it might
call to any of the others referring to it direclty or indirectly.
Isn't this however exactly same as asking ipa-pureconst bit?
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39689