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

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 09:36:45 PDT 2024


================
@@ -2292,8 +2298,10 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     setOperationAction(ISD::FP_EXTEND,            MVT::f32, Legal);
     setOperationAction(ISD::STRICT_FP_EXTEND,     MVT::f32, Legal);
 
-    setCondCodeAction(ISD::SETOEQ, MVT::f16, Expand);
-    setCondCodeAction(ISD::SETUNE, MVT::f16, Expand);
+    setCondCodeAction(ISD::SETOEQ, MVT::f16,
+                      Subtarget.hasAVX10_2() ? Custom : Expand);
+    setCondCodeAction(ISD::SETUNE, MVT::f16,
+                      Subtarget.hasAVX10_2() ? Custom : Expand);
----------------
mahesh-attarde wrote:

https://github.com/llvm/llvm-project/pull/113695
https://github.com/llvm/llvm-project/pull/113905,  2 commits on this very branch
I tried out  4 different ways, except current change i get regression for all moves.


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


More information about the llvm-commits mailing list