commit | 12d830346b78b8e92dc0346e710f261cc680480f | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Mar 05 05:30:57 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Mar 05 05:30:57 2006 +0000 |
tree | f048974e900475d86a457489483005ebb8248e31 | |
parent | a09f848c11c9db3c2614e0275a3256310ac26653 [diff] [blame] |
Add some simple copysign folds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26543 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 534015c..57f1066 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1250,6 +1250,8 @@ 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