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

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

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

commit r17-3170-gcfd84583a556889da6d8e777ab3a9e24557f9a02
Author: Andrea Pinski <[email protected]>
Date:   Sat Aug 8 11:22:49 2026 -0700

    phiopt: Fix up factoring out loads for REF_REVERSE_STORAGE_ORDER [PR126729]

    REF_REVERSE_STORAGE_ORDER is forgotten about when
factor_out_conditional_load
    was written up so if REF_REVERSE_STORAGE_ORDER was set, it would be lost.
    If REF_REVERSE_STORAGE_ORDER was mismatched then it would mess up too.
    This fixes that oversight.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR tree-optimization/126729

    gcc/ChangeLog:

            * tree-ssa-phiopt.cc (factor_out_conditional_load): Handle
            REF_REVERSE_STORAGE_ORDER being set correctly.

    gcc/testsuite/ChangeLog:

            * gcc.dg/sso/factor_load-1.c: New test.

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

Reply via email to