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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <[email protected]>:

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

commit r16-8358-gf511bf93f947199a9f9099fee87b7052e5515fb9
Author: H.J. Lu <[email protected]>
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 <[email protected]>

Reply via email to