[Bug target/124165] [16 Regression] Many std::map<string, string> -> long compilation time at -O0 (late_pro_and_epilogue pass involved) since r16-7563

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 31 12:36:28 GMT 2026


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

--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:f511bf93f947199a9f9099fee87b7052e5515fb9

commit r16-8358-gf511bf93f947199a9f9099fee87b7052e5515fb9
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Mar 29 14:30:28 2026 -0700

    x86: Call ix86_access_stack_p only for larger alignment

    ix86_access_stack_p can be quite expensive.  Don't check symbolic constant
    load.  Instead, call ix86_access_stack_p only if an INSN needs alignment
    > stack alignment.  This reduces the compile time of PR target/124684 from
    185 seconds to 24 seconds.  The compile time of PR target/124165 test is
    unchanged.

            PR target/124165
            PR target/124684
            * config/i386/i386.cc (ix86_symbolic_const_load_p_1): Renamed to
            ...
            (ix86_need_alignment_p_1): This.
            (ix86_symbolic_const_load_p): Renamed to ...
            (ix86_need_alignment_p): This.
            (ix86_find_max_used_stack_alignment): Call ix86_access_stack_p
            only if the INSN needs alignment > stack alignment.

    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>


More information about the Gcc-bugs mailing list