[llvm] [X86] Promote approximate f16 vector FMA to f32 (PR #228900)

Evgenii Kudriashov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 10:51:07 PDT 2026


================
@@ -58416,6 +58416,21 @@ static SDValue combineFMA(SDNode *N, SelectionDAG &DAG,
                           const X86Subtarget &Subtarget) {
   SDLoc dl(N);
   EVT VT = N->getValueType(0);
+  if (N->getOpcode() == ISD::FMA && DCI.isBeforeLegalizeOps() &&
----------------
e-kud wrote:

Does it make sense to make it target independent in `PromoteNode`? E.g. check if `ISD:FMA` is legal for `f32`?

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


More information about the llvm-commits mailing list