This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/64601] Missed PRE on std::vector move assignment
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Jan 2015 09:44:11 +0000
- Subject: [Bug tree-optimization/64601] Missed PRE on std::vector move assignment
- Auto-submitted: auto-generated
- References: <bug-64601-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64601
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's indeed that GCC only sees int accesses based on w and v and thus has to
consider they might alias.
Maybe it's time to try that "trick" with the same clobbering value...
TBAA cannot be strengthened easily here because the stores change the
dynamic type of the memory.