[libclc] Compile with -fdenormal-fp-math=dynamic (#183262)

This PR is extracted from #157633.
`-fdenormal-fp-math=dynamic` is required to defer denormal handling and
should be used for libclc library compilation.

Additionally, if the default ieee value is incompatible with the user
code's denormal-fp-math setting, this mismatch prevents libclc functions
from being inlined.
This commit is contained in:
Wenju He 2026-02-25 17:06:52 +08:00 committed by GitHub
parent a7cfc675ac
commit 90edb20175
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,6 +369,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
-Werror=undef
-fdiscard-value-names
-ffp-contract=fast-honor-pragmas
-fdenormal-fp-math=dynamic
)
if( NOT "${cpu}" STREQUAL "" )