We check that C is finite and strictly positive, but there's no need to
check that it's normal too. exp2 should be just as accurate on denormals
as pow is.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D79413
[InstCombine] Allow denormal C in pow(C,y) -> exp2(log2(C)*y) ClosedPublic Authored by foad on May 5 2020, 5:41 AM.
Details
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 5 2020, 7:24 AM Closed by commit rG22829ab5faf0: [InstCombine] Allow denormal C in pow(C,y) -> exp2(log2(C)*y) (authored by foad). · Explain WhyMay 5 2020, 8:36 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 262124 llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/pow-exp.ll
|