[SLC] Refactor simplification of pow() (NFC)

llvm-svn: 338730
This commit is contained in:
Evandro Menezes 2018-08-02 15:43:57 +00:00
parent ef494e1722
commit 84e74362c1
1 changed files with 1 additions and 1 deletions

View File

@ -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)