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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

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

commit r16-7511-gf7677c695f26298031a1f40719bc10ca376d10bc
Author: Andrew Pinski <[email protected]>
Date:   Fri Feb 13 11:30:53 2026 -0800

    complex-lowering: Fix up extraction with VCEs [PR124086]

    This was an oversight on my part when I converted extract_component
    to use gimple_build_assign instead of force_gimple_operand_gsi.
    I had provided a special case for VCE of a SSA_NAME but I missed
    that the same issue would be caused with invariants too and invariants
    would show up with VCE; I assumed they would be folded.
    This changes the check to include invariants too.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR tree-optimization/124086

    gcc/ChangeLog:

            * tree-complex.cc (extract_component): Extend the check
            for ssa names for VCE to include invariants.

    gcc/testsuite/ChangeLog:

            * c-c++-common/torture/pr124086-1.c: New test.
            * g++.dg/torture/pr124086-1.C: New test.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to