summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-20 00:41:09 +0000
committerChris Lattner <sabre@nondot.org>2008-04-20 00:41:09 +0000
commit3b18762f40751b09d52bd3224ed634586eec9265 (patch)
tree5691959280dc91a9e10f6de3deaee2ee00b3c173 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
parentd3018e6a0e459066850b851d5de568656a1c1983 (diff)
downloadbcm5719-llvm-3b18762f40751b09d52bd3224ed634586eec9265.tar.gz
bcm5719-llvm-3b18762f40751b09d52bd3224ed634586eec9265.zip
Switch to using Simplified ConstantFP::get API.
llvm-svn: 49977
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 3cdd727ae81..b4958d6d946 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -601,8 +601,7 @@ void ScheduleDAG::AddOperand(MachineInstr *MI, SDOperand Op,
} else if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
MI->addOperand(MachineOperand::CreateImm(C->getValue()));
} else if (ConstantFPSDNode *F = dyn_cast<ConstantFPSDNode>(Op)) {
- const Type *FType = MVT::getTypeForValueType(Op.getValueType());
- ConstantFP *CFP = ConstantFP::get(FType, F->getValueAPF());
+ ConstantFP *CFP = ConstantFP::get(F->getValueAPF());
MI->addOperand(MachineOperand::CreateFPImm(CFP));
} else if (RegisterSDNode *R = dyn_cast<RegisterSDNode>(Op)) {
MI->addOperand(MachineOperand::CreateReg(R->getReg(), false));
OpenPOWER on IntegriCloud