[Bug rtl-optimization/121240] missing support for section anchors to FP or vector constants
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 24 19:53:05 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121240
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Wilco Dijkstra <wilco@gcc.gnu.org>:
https://gcc.gnu.org/g:b67918fddab42c434c10bedff6c210c55ed907a0
commit r16-7666-gb67918fddab42c434c10bedff6c210c55ed907a0
Author: Wilco Dijkstra <wilco.dijkstra@arm.com>
Date: Thu Jan 22 12:28:36 2026 +0000
AArch64: Use anchors for vector constants [PR 121240]
Enable anchors for vector constants - like FP, expand vector constants
early
and place them in the constdata section. Avoid unnecessary loads by
expanding
simple cases using DUP. Performance on SPECFP2017 is ~0.3% better,
codesize
increases by 0.05% due to extra const data.
gcc:
PR target/121240
* config/aarch64/aarch64-simd.md (mov<mode>): Expand vector
constants
early.
* config/aarch64/aarch64.cc (aarch64_select_rtx_section): Force
vector immediates <= 16 bytes to constdata.
gcc/testsuite:
PR target/121240
* gcc.target/aarch64/const_create_using_fmov.c: Fix test.
* gcc.target/aarch64/pr121240.c: Add new test.
* gcc.target/aarch64/vec-init-single-const.c: Fix test.
* gcc.target/aarch64/vect-cse-codegen.c: Fix test.
More information about the Gcc-bugs
mailing list