[PATCH] D63038: [SimplifyLibCalls] powf(x, sitofp(n)) -> powi(x, n)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 8 05:10:56 PDT 2019
xbolva00 marked an inline comment as done.
xbolva00 added inline comments.
================
Comment at: test/Transforms/InstCombine/pow_fp_int.ll:75
; CHECK-LABEL: @pow_sitofp_const_base_power_of_2_no_fast(
-; CHECK-NEXT: [[SUBFP:%.*]] = sitofp i32 [[X:%.*]] to float
-; CHECK-NEXT: [[MUL:%.*]] = fmul float [[SUBFP]], 4.000000e+00
-; CHECK-NEXT: [[EXP2:%.*]] = call float @llvm.exp2.f32(float [[MUL]])
-; CHECK-NEXT: [[RES:%.*]] = fpext float [[EXP2]] to double
+; CHECK-NEXT: [[TMP1:%.*]] = call float @llvm.powi.f32(float 1.600000e+01, i32 [[X:%.*]])
+; CHECK-NEXT: [[RES:%.*]] = fpext float [[TMP1]] to double
----------------
@spatel @nikic what do you think about this case ?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63038/new/
https://reviews.llvm.org/D63038
More information about the llvm-commits
mailing list