I don't think there's any good reason not to do this transformation when
the pow has multiple uses.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D79407
[InstCombine] Remove hasOneUse check for pow(C,x) -> exp2(log2(C)*x) ClosedPublic Authored by foad on May 5 2020, 4:48 AM.
Details Summary I don't think there's any good reason not to do this transformation when
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 5 2020, 5:05 AM Closed by commit rGfa2783d79a23: [InstCombine] Remove hasOneUse check for pow(C,x) -> exp2(log2(C)*x) (authored by foad). · Explain WhyMay 5 2020, 6:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 262100 llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/pow-exp.ll
|