[PATCH] D79321: [SLC] Allow llvm.pow(2**n,x) -> llvm.exp2(n*x) even if no exp2 lib func
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 06:22:26 PDT 2020
foad marked an inline comment as done.
foad added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:1551-1553
if (Pow->doesNotAccessMemory())
return B.CreateCall(Intrinsic::getDeclaration(Mod, Intrinsic::exp2, Ty),
FMul, "exp2");
----------------
lebedev.ri wrote:
> Was this previously reachable?
Yes whenever we try to optimize a call to the llvm.pow intrinsic on a target that also has the pow libfunc available.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79321/new/
https://reviews.llvm.org/D79321
More information about the llvm-commits
mailing list