[libclc] [libclc] Refine __clc_fp*_subnormals_supported and __clc_flush_denormal_if_not_supported (PR #157633)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 3 03:02:30 PDT 2025


================
@@ -8,8 +8,8 @@
 
 _CLC_DEF _CLC_OVERLOAD float __clc_remquo(float x, float y,
                                           __CLC_ADDRESS_SPACE int *quo) {
-  x = __clc_flush_denormal_if_not_supported(x);
-  y = __clc_flush_denormal_if_not_supported(y);
+  x = __clc_soft_flush_denormal(x);
+  y = __clc_soft_flush_denormal(y);
----------------
arsenm wrote:

I don't think this is necessary. In the rocm-device-libs version of this, I managed to delete the explicit canonicalizes 

https://github.com/llvm/llvm-project/pull/157633


More information about the cfe-commits mailing list