[SLC] Refactor simplification of pow() (NFC)
llvm-svn: 338730
This commit is contained in:
parent
ef494e1722
commit
84e74362c1
|
@ -1178,7 +1178,7 @@ Value *LibCallSimplifier::optimizePow(CallInst *Pow, IRBuilder<> &B) {
|
||||||
// Evaluate special cases related to the base.
|
// Evaluate special cases related to the base.
|
||||||
|
|
||||||
// pow(1.0, x) -> 1.0
|
// pow(1.0, x) -> 1.0
|
||||||
if (match(Base, m_SpecificFP(1.0)))
|
if (match(Base, m_FPOne()))
|
||||||
return Base;
|
return Base;
|
||||||
|
|
||||||
// pow(2.0, x) -> exp2(x)
|
// pow(2.0, x) -> exp2(x)
|
||||||
|
|
Loading…
Reference in New Issue