diff options
author | Evandro Menezes <e.menezes@samsung.com> | 2018-08-02 15:43:57 +0000 |
---|---|---|
committer | Evandro Menezes <e.menezes@samsung.com> | 2018-08-02 15:43:57 +0000 |
commit | 84e74362c1d556d4626eca9a5d4984e3a32626ee (patch) | |
tree | 19a90d23c9e3e483b17b027719dffd107c377a70 | |
parent | ef494e1722ac7944ff8b7c79d684f1aa2711016f (diff) | |
download | bcm5719-llvm-84e74362c1d556d4626eca9a5d4984e3a32626ee.tar.gz bcm5719-llvm-84e74362c1d556d4626eca9a5d4984e3a32626ee.zip |
[SLC] Refactor simplification of pow() (NFC)
llvm-svn: 338730
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp index 15e03587400..bf92399dcf2 100644 --- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -1178,7 +1178,7 @@ Value *LibCallSimplifier::optimizePow(CallInst *Pow, IRBuilder<> &B) { // Evaluate special cases related to the base. // pow(1.0, x) -> 1.0 - if (match(Base, m_SpecificFP(1.0))) + if (match(Base, m_FPOne())) return Base; // pow(2.0, x) -> exp2(x) |