[PATCH] D109953: [X86] Combine the FADD(A, FMA(B, C, 0)) to FMA(B, C, A)

LiuChen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 17 07:19:56 PDT 2021


LiuChen3 added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:47514-47517
+        DAG.getNode(Opcode == X86ISD::VFMADDC ? X86ISD::VFMULC
+                                              : X86ISD::VFCMULC,
+                    SDLoc(Op0), Op0.getSimpleValueType(), Op0->getOperand(1),
+                    Op0->getOperand(2));
----------------
pengfei wrote:
> Why we still need this?
We need transfer FMA(A, B 0) to MUL(A, B) firstly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109953/new/

https://reviews.llvm.org/D109953



More information about the llvm-commits mailing list