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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Hongyu Wang <hong...@gcc.gnu.org>:

https://gcc.gnu.org/g:2d4312bca252738f81528623d36b45a1eae4321c

commit r16-1128-g2d4312bca252738f81528623d36b45a1eae4321c
Author: Hongyu Wang <hongyu.w...@intel.com>
Date:   Thu Jun 5 14:45:08 2025 +0800

    tree-sra: Use MOVE_MAX for sra size limit [PR112824]

    Current sra use UNITS_PER_WORD to define max scalarization size, but
    for targets like x86 it allows operations on larger size, so the
    components like vector variables in an aggregate can be larger than
    just UNITS_PER_WORD. Use MOVE_MAX instead of UNITS_PER_WORD to allow
    sra for aggregates with vector components.

    gcc/ChangeLog:

            PR middle-end/112824
            * tree-sra.cc (sra_get_max_scalarization_size): Use MOVE_MAX
            instead of UNITS_PER_WORD to define max_scalarization_size.

    gcc/testsuite/ChangeLog:

            * g++.target/i386/pr112824-2.C: New test.

Reply via email to