[PATCH] D63038: [SimplifyLibCalls] powf(x, sitofp(n)) -> powi(x, n)
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 15:35:18 PDT 2019
efriedma added inline comments.
================
Comment at: test/Transforms/InstCombine/pow_fp_int.ll:176
+; CHECK-LABEL: @pow_uitofp_const_base_no_fast(
+; CHECK-NEXT: [[SUBFP:%.*]] = uitofp i32 [[X:%.*]] to float
+; CHECK-NEXT: [[POWI:%.*]] = tail call float @llvm.pow.f32(float 7.000000e+00, float [[SUBFP]])
----------------
I don't think this is right; consider, for example , `pow(.999999999,4000000000)`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63038/new/
https://reviews.llvm.org/D63038
More information about the llvm-commits
mailing list