This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/78713] [missed optimization] gcc doesn't use clobbers to optimize constructors
- From: "avi at cloudius-systems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Dec 2016 13:16:03 +0000
- Subject: [Bug libstdc++/78713] [missed optimization] gcc doesn't use clobbers to optimize constructors
- Auto-submitted: auto-generated
- References: <bug-78713-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78713
--- Comment #4 from Avi Kivity <avi@cloudius-systems.com> ---
This bug has a cousin https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61982 where
the optimizer doesn't eliminate a store to an object that is about to be
destroyed. While for sure it is easier to implement in the library, I think
there is a lot of potential for similar optimizations if the optimizer does get
the information it craves.