diff options
author | Jan Voung <jvoung@chromium.org> | 2013-05-08 09:40:40 -0700 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-05-08 09:40:40 -0700 |
commit | e6d458443986237c33538335644b2a063937eb4d (patch) | |
tree | 13f15b86011ed2272d6be706ffcb1158d1fd9593 /lib | |
parent | 8c9803a8981992ffd6bb1a901c9c3a52f2aedfce (diff) |
Put llvm.powi in the dev list of intrinsics.
This is used by the LLVM translator as part of:
lib/Analysis/ConstantFolding.cpp (it tries to do constant
folding for pow calls...)
Also, tweak comment about llvm.pow vs llvm.powi. It
looks like powi is the imprecise one, not pow.
BUG=unblock DEPs roll, broken self-build.
BUG=http://code.google.com/p/nativeclient/issues/detail?id=3378
R=eliben@chromium.org
Review URL: https://codereview.chromium.org/14631013
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/NaCl/PNaClABIVerifyModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp b/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp index 515dbbcc1e..de27d5dc38 100644 --- a/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp +++ b/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp @@ -174,7 +174,8 @@ bool PNaClABIVerifyModule::IsWhitelistedIntrinsic(const Function* F, case Intrinsic::log2: // Rounding not defined: support with fast-math? case Intrinsic::log10: // Rounding not defined: support with fast-math? case Intrinsic::nacl_target_arch: // Used by translator self-build. - case Intrinsic::pow: // Rounding not defined: support with fast-math? + case Intrinsic::pow: // Rounding is supposed to be the same as libm. + case Intrinsic::powi: // Rounding not defined: support with fast-math? case Intrinsic::prefetch: // Could ignore if target doesn't support? case Intrinsic::returnaddress: // Support for 0-level or not? case Intrinsic::sin: // Rounding not defined: support with fast-math? |