[llvm] SelectionDAG: Use qNaN constant if FCANONICALIZE not LegalOrCustom (PR #104564)

Pawan Nirpal via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 10:56:08 PDT 2024


================
@@ -668,6 +669,8 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
       setOperationAction(ISD::FSIN   , VT, Expand);
       setOperationAction(ISD::FCOS   , VT, Expand);
       setOperationAction(ISD::FSINCOS, VT, Expand);
+
+      setOperationAction(ISD::FCANONICALIZE, VT, Expand);
----------------
pawan-nirpal-031 wrote:

Okay, I figured it might be so, So I take it, I should continue to prepare my patch. I plan to implement similar to your AMD gpu implementation. 

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


More information about the llvm-commits mailing list