[PATCH] D80974: [DAGCombine] Adding a hook to improve the precision of fsqrt if the input is denormal

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 4 19:42:57 PST 2020


qiucf added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:12705
+  if (VT != MVT::f64)
+    return TargetLowering::getSqrtResultForDenormInput(Op, DAG);
+
----------------
shchenz wrote:
> Target independent code supports vector type and we also have vector sqrt instruction on Powerpc target. Can we use them for vector types like v4f32 or v2f64?
Yes. Supported types:

- VSX off: `f32`, `f64`
- VSX on: `f32`, `f64`, `f128`, `v4f32`, `v2f64`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80974



More information about the llvm-commits mailing list