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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Soumya AR <soum...@gcc.gnu.org>:

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

commit r15-7222-gd8a7f07f7cf008e359dad631aaae1028776b9e18
Author: Soumya AR <soum...@nvidia.com>
Date:   Mon Jan 27 11:12:33 2025 +0530

    match.pd: Fix indefinite recursion during exp-log transformations
[PR118490]

    This patch fixes the ICE caused when comparing log or exp of a constant
with
    another constant.

    The transform is now restricted to cases where the resultant
    log/exp (CST) can be constant folded.

    Signed-off-by: Soumya AR <soum...@nvidia.com>

    gcc/ChangeLog:

            PR target/118490
            * match.pd: Added ! to verify that log/exp (CST) can be constant
folded.

    gcc/testsuite/ChangeLog:

            PR target/118490
            * gcc.dg/pr118490.c: New test.

Reply via email to