mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Add intrinsic forms of pow and exp2. The non-intrinsic
forms remain to handle older IR files, but will go away soon. llvm-svn: 55781
This commit is contained in:
parent
e1f9be27bc
commit
bbd799c544
@ -1246,9 +1246,19 @@ void SimplifyLibCalls::InitOptimizations() {
|
|||||||
Optimizations["powf"] = &Pow;
|
Optimizations["powf"] = &Pow;
|
||||||
Optimizations["pow"] = &Pow;
|
Optimizations["pow"] = &Pow;
|
||||||
Optimizations["powl"] = &Pow;
|
Optimizations["powl"] = &Pow;
|
||||||
|
Optimizations["llvm.pow.f32"] = &Pow;
|
||||||
|
Optimizations["llvm.pow.f64"] = &Pow;
|
||||||
|
Optimizations["llvm.pow.f80"] = &Pow;
|
||||||
|
Optimizations["llvm.pow.f128"] = &Pow;
|
||||||
|
Optimizations["llvm.pow.ppcf128"] = &Pow;
|
||||||
Optimizations["exp2l"] = &Exp2;
|
Optimizations["exp2l"] = &Exp2;
|
||||||
Optimizations["exp2"] = &Exp2;
|
Optimizations["exp2"] = &Exp2;
|
||||||
Optimizations["exp2f"] = &Exp2;
|
Optimizations["exp2f"] = &Exp2;
|
||||||
|
Optimizations["llvm.exp2.ppcf128"] = &Exp2;
|
||||||
|
Optimizations["llvm.exp2.f128"] = &Exp2;
|
||||||
|
Optimizations["llvm.exp2.f80"] = &Exp2;
|
||||||
|
Optimizations["llvm.exp2.f64"] = &Exp2;
|
||||||
|
Optimizations["llvm.exp2.f32"] = &Exp2;
|
||||||
|
|
||||||
#ifdef HAVE_FLOORF
|
#ifdef HAVE_FLOORF
|
||||||
Optimizations["floor"] = &UnaryDoubleFP;
|
Optimizations["floor"] = &UnaryDoubleFP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user