This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36201] NVR in the front-end causes missed optimization later on (<retval> thought to alias arguments)
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2008 11:41:46 -0000
- Subject: [Bug middle-end/36201] NVR in the front-end causes missed optimization later on (<retval> thought to alias arguments)
- References: <bug-36201-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-05-13 11:41 -------
The patch isn't really correct, but the problem is that the fact that <result>
is marked addressable is causing flow-insensitive analysis to say that the
incoming pointers can alias it.
Also incoming pointers don't get useful constraints for PTA - they should get
&NONLOCAL (err, ok - we had that once ;)). Or we can simply prune the
points-to set after the fact.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36201