This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82000] Missed optimization of char_traits::length() on constant string
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 04:14:35 +0000
- Subject: [Bug c++/82000] Missed optimization of char_traits::length() on constant string
- Auto-submitted: auto-generated
- References: <bug-82000-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82000
--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Louis Dionne from comment #2)
> > Downloading the one from godbolt, we simplify it to: [...]
>
> I have no idea what this is and how you feed that to GCC, but I'm curious.
That's what -fdump-tree-optimized shows (end of high-level optimizations). You
don't feed it to gcc (it is missing all information about internal_buffer for
instance), although with -fgimple there are variants that gcc could read.