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:
parent
c52ea21a6e
commit
03fcbcf407
|
@ -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() &&
|
||||||
|
|
Loading…
Reference in New Issue