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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:7f5adfd31b3af08924faec36679eaea40a98af19

commit r15-6944-g7f5adfd31b3af08924faec36679eaea40a98af19
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Jan 16 09:25:16 2025 +0100

    tree-ssa-propagate: Special case lhs of musttail calls in
may_propagate_copy [PR118430]

    This patch ensures that VRP or similar passes don't replace the uses of lhs
of
    [[gnu::musttail]] calls with some constant (e.g. if the call is known is
known
    to return a singleton value range) etc. to make it more likely that it is
actually
    tail callable.

    2025-01-16  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/118430
            * tree-ssa-propagate.cc (may_propagate_copy): Return false if dest
            is lhs of an [[gnu::musttail]] call.
            (substitute_and_fold_dom_walker::before_dom_children): Formatting
fix.

            * c-c++-common/musttail14.c: Expect lhs on the must tail call
calls.

Reply via email to