[PATCH] D64099: [InstCombine] pow(C,x) -> exp2(log2(C)*x)

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 15:51:51 PDT 2019


xbolva00 marked an inline comment as done.
xbolva00 added inline comments.


================
Comment at: test/Transforms/InstCombine/pow-exp.ll:7
+; CHECK-NEXT:    [[CALL:%.*]] = call afn float @expf(float [[X:%.*]]) #1
+; CHECK-NEXT:    [[POW:%.*]] = call afn float @llvm.pow.f32(float [[CALL]], float [[Y:%.*]])
+; CHECK-NEXT:    ret float [[POW]]
----------------
Should we also change sFast() check in the fold above this new fold to just “afn” check ? @efriedma @spatel


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

https://reviews.llvm.org/D64099





More information about the llvm-commits mailing list