diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-10-27 19:56:55 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-10-27 19:56:55 +0000 |
commit | 16993aa30bee48a0d2fe06c6e334db7a4b57d80b (patch) | |
tree | 7187d4fd9c7143ed38e8c988816949d78b6765e7 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | b5044ce5a9a3baeead95b6da07d9b2b48c3337ed (diff) | |
download | bcm5719-llvm-16993aa30bee48a0d2fe06c6e334db7a4b57d80b.tar.gz bcm5719-llvm-16993aa30bee48a0d2fe06c6e334db7a4b57d80b.zip |
Do away with addLegalFPImmediate. Add a target hook isFPImmLegal which returns true if the fp immediate can be natively codegened by target.
llvm-svn: 85281
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index a2baee42310..9f36b679f3b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -481,7 +481,7 @@ TargetLowering::TargetLowering(TargetMachine &tm,TargetLoweringObjectFile *tlof) setOperationAction(ISD::PREFETCH, MVT::Other, Expand); // ConstantFP nodes default to expand. Targets can either change this to - // Legal, in which case all fp constants are legal, or use addLegalFPImmediate + // Legal, in which case all fp constants are legal, or use isFPImmLegal() // to optimize expansions for certain constants. setOperationAction(ISD::ConstantFP, MVT::f32, Expand); setOperationAction(ISD::ConstantFP, MVT::f64, Expand); |