diff options
author | Soumya AR <soumyaa@nvidia.com> | 2025-01-27 11:12:33 +0530 |
---|---|---|
committer | Soumya AR <soumyaa@nvidia.com> | 2025-01-27 11:14:37 +0530 |
commit | d8a7f07f7cf008e359dad631aaae1028776b9e18 (patch) | |
tree | 69e6bf092597bb632e1d42ba5518c9de72366319 /gcc/expr.cc | |
parent | 1110ed77c1f22d5fc76df97d5353f27e4e91d5ae (diff) | |
download | gcc-d8a7f07f7cf008e359dad631aaae1028776b9e18.zip gcc-d8a7f07f7cf008e359dad631aaae1028776b9e18.tar.gz gcc-d8a7f07f7cf008e359dad631aaae1028776b9e18.tar.bz2 |
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 <soumyaa@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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions