[llvm-commits] CVS: llvm/lib/Transforms/Utils/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 15 16:44:01 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
Local.cpp updated: 1.27 -> 1.28
---
Log message:
Remove support for the isnan intrinsic
---
Diffs of the changes: (+0 -3)
Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.27 llvm/lib/Transforms/Utils/Local.cpp:1.28
--- llvm/lib/Transforms/Utils/Local.cpp:1.27 Mon Jun 14 01:33:19 2004
+++ llvm/lib/Transforms/Utils/Local.cpp Tue Jun 15 16:37:54 2004
@@ -245,7 +245,6 @@
const std::string &Name = F->getName();
switch (F->getIntrinsicID()) {
- case Intrinsic::isnan: return true;
case Intrinsic::isunordered: return true;
default: break;
}
@@ -274,8 +273,6 @@
if (Operands.size() == 1) {
if (ConstantFP *Op = dyn_cast<ConstantFP>(Operands[0])) {
double V = Op->getValue();
- if (Name == "llvm.isnan")
- return ConstantBool::get(isnan(V));
else if (Name == "sin")
return ConstantFP::get(Ty, sin(V));
else if (Name == "cos")
More information about the llvm-commits
mailing list