forked from OSchip/llvm-project
Now that it's supported, turn copysignl into a COPYSIGN node.
llvm-svn: 98348
This commit is contained in:
parent
52ceee58d3
commit
607f1825b0
|
|
@ -4633,7 +4633,7 @@ void SelectionDAGBuilder::visitCall(CallInst &I) {
|
|||
// can't be a library call.
|
||||
if (!F->hasLocalLinkage() && F->hasName()) {
|
||||
StringRef Name = F->getName();
|
||||
if (Name == "copysign" || Name == "copysignf") {
|
||||
if (Name == "copysign" || Name == "copysignf" || Name == "copysignl") {
|
||||
if (I.getNumOperands() == 3 && // Basic sanity checks.
|
||||
I.getOperand(1)->getType()->isFloatingPointTy() &&
|
||||
I.getType() == I.getOperand(1)->getType() &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue