[PATCH] D128591: Transforms: refactor pow(x, n) expansion where n is a constant integer value

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 10:18:36 PDT 2022


RKSimon added a comment.

Thanks @pawosm01



================
Comment at: llvm/test/Transforms/InstCombine/pow-4.ll:140
+; CHECK-NEXT:    [[TMP1:%.*]] = call fast double @llvm.pow.f64(double [[X:%.*]], double 1.650000e+01)
+; CHECK-NEXT:    ret double [[TMP1]]
 ;
----------------
I guess we need to decide whether we want to retain this variety of cases somehow? I assume we can perform this as powi(x, 16) * sqrt(x) ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128591



More information about the llvm-commits mailing list