This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82000] Missed optimization of char_traits::length() on constant string


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]