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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

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

commit r15-850-gf9fbb47987efc8b5261e4cc36613c928a8693493
Author: Richard Biener <rguent...@suse.de>
Date:   Mon May 27 09:40:19 2024 +0200

    tree-optimization/115220 - fix store sinking virtual operand constraints

    The following makes sure the virtual operand updating when sinking
    stores works for the case we ignore paths to kills.  The final
    sink location might not post-dominate the original stmt location
    which would require inserting of a virtual PHI which we do not support.

            PR tree-optimization/115220
            PR tree-optimization/115226
            * tree-ssa-sink.cc (statement_sink_location): When ignoring
            paths to kills when sinking stores make sure the final
            sink location is still post-dominated by the original one.
            Otherwise we'd need to insert a PHI node to merge virtual operands.

            * gcc.dg/torture/pr115220.c: New testcase.
            * gcc.dg/torture/pr115226.c: New testcase.

Reply via email to