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

--- Comment #12 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:e94e91d6f37750cae671ea7f82ce55bda3f8f372

commit r16-5556-ge94e91d6f37750cae671ea7f82ce55bda3f8f372
Author: Andrew Pinski <[email protected]>
Date:   Thu Nov 20 23:14:24 2025 -0800

    phiprop: allowing prop into loop if there is a phi already

    This is a small improvement over the original change
    for PR60183 where if we created a phi already we can
    reuse it always but since the order of this use might
    be before the use which was valid to transform. we
    need a vector to save the delayed ones.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR tree-optimization/60183

    gcc/ChangeLog:

            * tree-ssa-phiprop.cc (propagate_with_phi): Delay the decision
            of always rejecting proping into the loop until all are done.
            if there was some delay stmts and a phi was created fill them in.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/phiprop-5.c: New test.

    Signed-off-by: Andrew Pinski <[email protected]>
  • [Bug tree-optimization/60183] [... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to