summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMMCInstLower.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-09-16 03:45:21 +0000
committerJim Grosbach <grosbach@apple.com>2010-09-16 03:45:21 +0000
commit298d0fd1c8895122313dc88245f4c51d4570afdb (patch)
treef7054fd74e3ecedbf76ac9109501735d1540fcec /llvm/lib/Target/ARM/ARMMCInstLower.cpp
parentd38fb8466cc672381611ab7c6de7776ea350055b (diff)
downloadbcm5719-llvm-298d0fd1c8895122313dc88245f4c51d4570afdb.tar.gz
bcm5719-llvm-298d0fd1c8895122313dc88245f4c51d4570afdb.zip
store MC FP immediates as a double instead of as an APFloat, thus avoiding an
unnecessary dtor for MCOperand. llvm-svn: 114064
Diffstat (limited to 'llvm/lib/Target/ARM/ARMMCInstLower.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMMCInstLower.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMMCInstLower.cpp b/llvm/lib/Target/ARM/ARMMCInstLower.cpp
index b26d327e363..8774010d89d 100644
--- a/llvm/lib/Target/ARM/ARMMCInstLower.cpp
+++ b/llvm/lib/Target/ARM/ARMMCInstLower.cpp
@@ -157,7 +157,8 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
MO.getBlockAddress()));
break;
case MachineOperand::MO_FPImmediate:
- MCOp = MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF());
+ MCOp =
+ MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF().convertToDouble());
break;
}
OpenPOWER on IntegriCloud