[PATCH] D114765: [X86][FP16] Only generate approximate rsqrt when Reciprocal is true for half type

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 29 19:10:05 PST 2021


craig.topper added a comment.

I think for f16 you should also be returning true from X86TargetLowering::isFsqrtCheap which would prevent getSqrtEstimate from being called for the non-reciprocal case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114765



More information about the llvm-commits mailing list