diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-07 08:19:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-07 08:19:47 +0000 |
commit | 257cbf7a8dca9372882a7a98ec626897247aee6d (patch) | |
tree | 4077b2a0dd3a42e5e82c48976fad126c4df3bf30 /lib/Analysis/ConstantFolding.cpp | |
parent | 2db43c864e8372823d961d961ca520ed20edca82 (diff) | |
download | external_llvm-257cbf7a8dca9372882a7a98ec626897247aee6d.zip external_llvm-257cbf7a8dca9372882a7a98ec626897247aee6d.tar.gz external_llvm-257cbf7a8dca9372882a7a98ec626897247aee6d.tar.bz2 |
remove llvm.isunordered
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index 9f2be3e..b4c4137 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp @@ -35,8 +35,6 @@ llvm::canConstantFoldCallTo(Function *F) { const std::string &Name = F->getName(); switch (F->getIntrinsicID()) { - case Intrinsic::isunordered_f32: - case Intrinsic::isunordered_f64: case Intrinsic::sqrt_f32: case Intrinsic::sqrt_f64: case Intrinsic::bswap_i16: @@ -178,9 +176,6 @@ llvm::ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands) { if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) { double Op2V = Op2->getValue(); - if (Name == "llvm.isunordered.f32" || Name == "llvm.isunordered.f64") - return ConstantBool::get(IsNAN(Op1V) || IsNAN(Op2V)); - else if (Name == "pow") { errno = 0; double V = pow(Op1V, Op2V); |