[libclc] [libclc] remquo: avoid canonicalize for float (PR #179160)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 4 04:46:47 PST 2026


================
@@ -70,7 +70,7 @@ _CLC_DEF _CLC_OVERLOAD float __clc_remquo(float x, float y,
 
     int qsgn = 1 + (((__clc_as_int(x) ^ __clc_as_int(y)) >> 31) << 1);
     float t = __clc_fma(y, -(float)qsgn, x);
-    ret = c ? t : __builtin_elementwise_canonicalize(x);
----------------
arsenm wrote:

I'm pretty sure this is required. I know I made an effort to eliminate this in device libs and haven't succeeded. It's still there 

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


More information about the cfe-commits mailing list