[PATCH] D127982: [X86][FP16] Enable vector support for FP16 emulation

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 02:14:09 PDT 2022


yubing added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:1105
+    setF16Action(MVT::v8f16, Expand);
+    setOperationAction(ISD::FADD, MVT::v8f16, Expand);
+    setOperationAction(ISD::FSUB, MVT::v8f16, Expand);
----------------
besides, since we have addps(xmm) for sse2, so we can lower v8f16 into two v4f32, here setting v8f16's fadd as expand will lead to performance issue.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127982



More information about the llvm-commits mailing list