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

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

https://gcc.gnu.org/g:1438f92c9e721133031b72a3884ed7bc17d0401c

commit r16-6776-g1438f92c9e721133031b72a3884ed7bc17d0401c
Author: Wilco Dijkstra <[email protected]>
Date:   Tue Jan 13 16:21:05 2026 +0000

    AArch64: Use anchors for FP constants [PR 121240]

    Use anchors for FP constants - instead of using mergeable sections which
blocks
    anchors, load FP constants from the constdata section.  To avoid the anchor
    loads being deoptimized later, ensure the cost of a CONST_DOUBLE is larger
than
    the cost of a MEM that loads it from constdata.  Codesize is slightly
smaller,
    performance on SPECFP2017 is ~0.30% better.

    gcc:
            PR target/121240
            * config/aarch64/aarch64.md (mov<mode>): Expand FP immediates
early.
            * config/aarch64/aarch64.cc (aarch64_select_rtx_section): Force
            immediates <= 8 bytes to constdata.
            (aarch64_rtx_costs): Increase cost of CONST_DOUBLE loaded from
memory.

    gcc/testsuite:
            PR target/121240
            * gcc.target/aarch64/dbl_mov_immediate_1.c: Adjust test.
            * gcc.target/aarch64/pr63304_1.c: Likewise.
  • [Bug rtl-optimization/121240] m... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to