llvm-project
acdf1c75 - [DAG] Add generic expansion for ISD::FCANONICALIZE nodes (#142105)

Commit
181 days ago
[DAG] Add generic expansion for ISD::FCANONICALIZE nodes (#142105) This PR takes the work previously done by @pawan-nirpal-031 on X86 in #106370, and makes it available in common code. This should enable all targets to use `__builtin_canonicalize` for all `f(16|32|64|128)` data types. Canonicalization is implemented here as multiplication by `1.0`, as suggested in [the docs](https://llvm.org/docs/LangRef.html#llvm-canonicalize-intrinsic).
Parents
Loading