Author: Wenju He
Date: 2026-02-25T17:06:52+08:00
New Revision: 90edb2017545eacef21f4bd34c27a2233adf814d

URL: 
https://github.com/llvm/llvm-project/commit/90edb2017545eacef21f4bd34c27a2233adf814d
DIFF: 
https://github.com/llvm/llvm-project/commit/90edb2017545eacef21f4bd34c27a2233adf814d.diff

LOG: [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.

Added: 
    

Modified: 
    libclc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index f01c3cc98a739..3252e2625debc 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -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 "" )


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to