[llvm-branch-commits] [llvm] [X86] Mark vXi64 int to fp undesirable without AVX512DQ (PR #242914)

Dmitry Sidorov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 16 02:05:17 PST 2026


================
@@ -64658,6 +64658,16 @@ bool X86TargetLowering::isTypeDesirableForOp(unsigned Opc, EVT VT) const {
   return true;
 }
 
+bool X86TargetLowering::isTypeDesirableForOp(SDNode *N, EVT VT) const {
+  unsigned Opc = N->getOpcode();
+  // There are no vXi64 to f32 or f64 conversions without AVX512DQ.
+  if ((Opc == ISD::SINT_TO_FP || Opc == ISD::UINT_TO_FP) &&
+      VT.isVectorOf(MVT::i64) && !Subtarget.hasDQI() &&
+      !(Subtarget.hasFP16() && N->getValueType(0).isVectorOf(MVT::f16)))
+    return false;
----------------
MrSidims wrote:

Not really. The operation action is keyed on the integer type only, so it can't see the result type.

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


More information about the llvm-branch-commits mailing list