mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 13:08:00 +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["pow"] = &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["exp2"] = &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
|
||||
Optimizations["floor"] = &UnaryDoubleFP;
|
||||
|
Loading…
Reference in New Issue
Block a user