[Bug c++/77456] Suboptimal code when returning a string generated with a constexpr fn at compile time

ktkachov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 5 08:11:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77456

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #7 from ktkachov at gcc dot gnu.org ---
I can confirm that for the missed store merging optimisation it is fixed by my
WIP patch that I'm iterating on [1].

The consecutive constant byte stores are merged into 64-bit stores.
On aarch64 the resulting assembly file at -O2 is reduced from 40757 lines to
32965 lines.

[1] https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01512.html


More information about the Gcc-bugs mailing list