[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 00:40:28 PDT 2021


LiuChen3 created this revision.
Herald added subscribers: pengfei, hiraditya.
LiuChen3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch is to support transform something like
_mm512_add_ph(acc, _mm512_fmadd_pch(a, b, _mm512_setzero_ph()))
to _mm512_fmadd_pch(a, b, acc).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109953

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/avx512fp16-combine-vfmac-fadd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109953.373157.patch
Type: text/x-patch
Size: 7115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210917/30b7c0d7/attachment.bin>


More information about the llvm-commits mailing list