[llvm] GlobalISel needs fdiv 1 / sqrt(x) to rsq combine (PR #78673)
Nick Anderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 22:30:26 PST 2024
================
@@ -33,12 +33,12 @@ def rcp_sqrt_to_rsq : GICombineRule<
[{ return matchRcpSqrtToRsq(*${rcp}, ${matchinfo}); }]),
(apply [{ Helper.applyBuildFn(*${rcp}, ${matchinfo}); }])>;
-def fdiv_by_sqrt_to_rsq : GICombineRule<
+def fdiv_by_sqrt_to_rsq_f16 : GICombineRule<
(defs root:$root),
(match (G_FSQRT $sqrt, $x, (MIFlags FmContract)),
----------------
nickleus27 wrote:
So don't worry about f16 vectors? just f16:sqrt is okay?
https://github.com/llvm/llvm-project/pull/78673
More information about the llvm-commits
mailing list