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

--- Comment #4 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:08e803aa9becf407eb7ef7cf6af96e3bd0d02d38

commit r15-9193-g08e803aa9becf407eb7ef7cf6af96e3bd0d02d38
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Apr 4 08:59:51 2025 +0200

    tailc: Use the IPA-VRP tail call hack even for pointers [PR119614]

    As the first two testcases show, even with pointers IPA-VRP can optimize
    return values from functions if they have singleton ranges into just the
    exact value, so we need to virtually undo that for tail calls similarly
    to integers and floats.  The third test just adds check that it works
    even with floats (which it does).

    2025-04-04  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/119614
            * tree-tailcall.cc (find_tail_calls): Handle also pointer types in
the
            IPA-VRP workaround.

            * c-c++-common/pr119614-1.c: New test.
            * c-c++-common/pr119614-2.c: New test.
            * c-c++-common/pr119614-3.c: New test.

Reply via email to