diff options
| author | Dale Johannesen <dalej@apple.com> | 2008-09-22 21:57:32 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2008-09-22 21:57:32 +0000 |
| commit | b02a1c07cb1e1b9cdae3bf1ddb0578c779b9c8ff (patch) | |
| tree | 9967be437db035405818942ce92a878e419d1516 /lib/CodeGen | |
| parent | 465a66e263a9e032ddb5bdb2702226ec0480d0ef (diff) | |
| download | external_llvm-b02a1c07cb1e1b9cdae3bf1ddb0578c779b9c8ff.zip external_llvm-b02a1c07cb1e1b9cdae3bf1ddb0578c779b9c8ff.tar.gz external_llvm-b02a1c07cb1e1b9cdae3bf1ddb0578c779b9c8ff.tar.bz2 | |
Make log, log2, log10, exp, exp2 use Expand by
default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 05ba5a8..a85890a 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -430,6 +430,18 @@ TargetLowering::TargetLowering(TargetMachine &tm) setOperationAction(ISD::ConstantFP, MVT::f64, Expand); setOperationAction(ISD::ConstantFP, MVT::f80, Expand); + // These library functions default to expand. + setOperationAction(ISD::FLOG , MVT::f64, Expand); + setOperationAction(ISD::FLOG2, MVT::f64, Expand); + setOperationAction(ISD::FLOG10,MVT::f64, Expand); + setOperationAction(ISD::FEXP , MVT::f64, Expand); + setOperationAction(ISD::FEXP2, MVT::f64, Expand); + setOperationAction(ISD::FLOG , MVT::f32, Expand); + setOperationAction(ISD::FLOG2, MVT::f32, Expand); + setOperationAction(ISD::FLOG10,MVT::f32, Expand); + setOperationAction(ISD::FEXP , MVT::f32, Expand); + setOperationAction(ISD::FEXP2, MVT::f32, Expand); + // Default ISD::TRAP to expand (which turns it into abort). setOperationAction(ISD::TRAP, MVT::Other, Expand); |
