aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-14 05:39:35 +0000
committerChris Lattner <sabre@nondot.org>2006-02-14 05:39:35 +0000
commit06a248c9b398049d41cf6dd1a3f9eecc75603401 (patch)
tree9e0afe390089900a329159222e8c14c2960f61af
parent1828ee191c6686309921f5b37a3e74ce8ecb795c (diff)
downloadexternal_llvm-06a248c9b398049d41cf6dd1a3f9eecc75603401.zip
external_llvm-06a248c9b398049d41cf6dd1a3f9eecc75603401.tar.gz
external_llvm-06a248c9b398049d41cf6dd1a3f9eecc75603401.tar.bz2
now that libcalls don't suck, we can remove this hack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 96c1b31..979f2be 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1098,9 +1098,7 @@ void SelectionDAGLowering::visitCall(CallInst &I) {
} else if (Name[0] == 's' && (Name == "sin" || Name == "sinf")) {
if (I.getNumOperands() == 2 && // Basic sanity checks.
I.getOperand(1)->getType()->isFloatingPoint() &&
- I.getType() == I.getOperand(1)->getType() &&
- TLI.isOperationLegal(ISD::FSIN,
- TLI.getValueType(I.getOperand(1)->getType()))) {
+ I.getType() == I.getOperand(1)->getType()) {
SDOperand Tmp = getValue(I.getOperand(1));
setValue(&I, DAG.getNode(ISD::FSIN, Tmp.getValueType(), Tmp));
return;
@@ -1108,9 +1106,7 @@ void SelectionDAGLowering::visitCall(CallInst &I) {
} else if (Name[0] == 'c' && (Name == "cos" || Name == "cosf")) {
if (I.getNumOperands() == 2 && // Basic sanity checks.
I.getOperand(1)->getType()->isFloatingPoint() &&
- I.getType() == I.getOperand(1)->getType() &&
- TLI.isOperationLegal(ISD::FCOS,
- TLI.getValueType(I.getOperand(1)->getType()))) {
+ I.getType() == I.getOperand(1)->getType()) {
SDOperand Tmp = getValue(I.getOperand(1));
setValue(&I, DAG.getNode(ISD::FCOS, Tmp.getValueType(), Tmp));
return;