[llvm] [X86][AVX512] Use comx for compare (PR #113567)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 27 21:55:03 PDT 2024


================
@@ -223,6 +223,12 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     setCondCodeAction(ISD::SETUNE, VT, Expand);
   }
 
+  if (Subtarget.hasAVX10_2()) {
+    for (auto VT : {MVT::f16, MVT::f32, MVT::f64}) {
+      setCondCodeAction(ISD::SETOEQ, VT, Custom);
+      setCondCodeAction(ISD::SETUNE, VT, Custom);
+    }
+  }
----------------
phoebewang wrote:

Move this under FP16 code. We need to override `f16` with this code.

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


More information about the llvm-commits mailing list