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 17:15:52 -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 #6 from hubicka at ucw dot cz 2009-04-08 17:15 -------
Subject: Re: IPA should compute if a function may recurse
> /* Check if base is a global static variable that is not written
> by the function. */
Does it also make use of fact that var is not read?
This is another analysis that is easilly doable top-down in early
optimization queue if you find this info improving code a lot.
I guess this is mostly Fortran thingy, since on C/C++ static vars are
not that frequented speciments anymore? (ignoring the GCC codebase of
course)
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39689