[PATCH] D110557: [X86] Optimize fdiv with reciprocal instructions for half type

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 6 09:27:38 PDT 2021


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:23231
+
+  if (VT.getScalarType() == MVT::f16 && Subtarget.hasFP16()) {
+    if (RefinementSteps == ReciprocalEstimate::Unspecified)
----------------
You need to know the type is legal. v64f16 will get through this, but type legalization won't be able to split a v64f16 X86ISD::RCP14 node.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110557



More information about the llvm-commits mailing list