Revert turning copysignl into a COPYSIGN node for the moment:

ppc calls copysignl with a 128 bit ppc long double, resulting
in a node that the type legalizer doesn't know how to expand.

llvm-svn: 98357
This commit is contained in:
Duncan Sands 2010-03-12 17:41:34 +00:00
parent c52ea21a6e
commit 03fcbcf407
1 changed files with 1 additions and 1 deletions

View File

@ -4633,7 +4633,7 @@ void SelectionDAGBuilder::visitCall(CallInst &I) {
// can't be a library call. // can't be a library call.
if (!F->hasLocalLinkage() && F->hasName()) { if (!F->hasLocalLinkage() && F->hasName()) {
StringRef Name = F->getName(); StringRef Name = F->getName();
if (Name == "copysign" || Name == "copysignf" || Name == "copysignl") { if (Name == "copysign" || Name == "copysignf") {
if (I.getNumOperands() == 3 && // Basic sanity checks. if (I.getNumOperands() == 3 && // Basic sanity checks.
I.getOperand(1)->getType()->isFloatingPointTy() && I.getOperand(1)->getType()->isFloatingPointTy() &&
I.getType() == I.getOperand(1)->getType() && I.getType() == I.getOperand(1)->getType() &&