diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-05 05:30:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-05 05:30:57 +0000 |
commit | 12d830346b78b8e92dc0346e710f261cc680480f (patch) | |
tree | f048974e900475d86a457489483005ebb8248e31 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | a09f848c11c9db3c2614e0275a3256310ac26653 (diff) |
Add some simple copysign folds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 534015ccf9..57f10663d0 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1250,6 +1250,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, case ISD::FREM : if (C2) return getConstantFP(fmod(C1, C2), VT); break; + case ISD::FCOPYSIGN: + return getConstantFP(copysign(C1, C2), VT); default: break; } } else { // Cannonicalize constant to RHS if commutative |