[llvm] [X86] Promote approximate v8f16 FMA to v8f32 (PR #228900)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 02:01:46 PDT 2026
================
@@ -58416,6 +58416,19 @@ static SDValue combineFMA(SDNode *N, SelectionDAG &DAG,
const X86Subtarget &Subtarget) {
SDLoc dl(N);
EVT VT = N->getValueType(0);
+ if (N->getOpcode() == ISD::FMA && VT == MVT::v8f16 &&
+ DCI.isBeforeLegalizeOps() && N->getFlags().hasApproximateFuncs() &&
----------------
RKSimon wrote:
If we limited it to isBeforeLegalize could we efficiently handle any f16 vector?
https://github.com/llvm/llvm-project/pull/228900
More information about the llvm-commits
mailing list