[PATCH] gcc: middle-end opt for trigonometric pi-based functions builtins
Yuao Ma
c8ef@outlook.com
Sat Jun 7 13:55:16 GMT 2025
Hi all,
This patch has been updated to conditionally fold the specified math functions
only when using MPFR version 4.2.0 or newer.
To accompany this change, the test case now utilizes `__builtin_constant_p` to
determine whether to execute the tests against the folded functions.
Let me know if this patch needs further modifications!
Best regards,
Yuao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250607/4a4a9cb6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gcc-middle-end-opt-for-trigonometric-pi-based-functi.patch
Type: application/octet-stream
Size: 9688 bytes
Desc: 0001-gcc-middle-end-opt-for-trigonometric-pi-based-functi.patch
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250607/4a4a9cb6/attachment.obj>
More information about the Fortran
mailing list