[PATCH] D63038: [SimplifyLibCalls] powf(x, sitofp(n)) -> powi(x, n)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 18:11:05 PDT 2019
xbolva00 marked an inline comment as done.
xbolva00 added inline comments.
================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:1470
+ if (auto *IntToFP = dyn_cast<SIToFPInst>(Expo)) {
+ // TODO: better transformations if x is also (constant) integer?
+ Value* IntVal = IntToFP->getOperand(0);
----------------
We have no pow(int, int) intrinsic right? So there is no easy way how to do it as follow up...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63038/new/
https://reviews.llvm.org/D63038
More information about the llvm-commits
mailing list