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

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 17 07:01:57 PDT 2021


pengfei added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:47512
+        return true;
+      } else if ((Opcode == X86ISD::VFMADDC || Opcode == X86ISD::VFCMADDC) &&
+                 ISD::isBuildVectorAllZeros(Op0->getOperand(0).getNode())) {
----------------
We don't need else after return. See the Lint comment.


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