diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-09-16 03:45:21 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-09-16 03:45:21 +0000 |
commit | a8e47b3319db56675f8e80f4bb015c163110b902 (patch) | |
tree | 7c7cb8aed315b557095d15dc17c76f6af6fe4529 /lib/Target/ARM/ARMMCInstLower.cpp | |
parent | f969868271f25df126047d0844f45b5e3b844b6d (diff) |
store MC FP immediates as a double instead of as an APFloat, thus avoiding an
unnecessary dtor for MCOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMMCInstLower.cpp')
-rw-r--r-- | lib/Target/ARM/ARMMCInstLower.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMMCInstLower.cpp b/lib/Target/ARM/ARMMCInstLower.cpp index b26d327e36..8774010d89 100644 --- a/lib/Target/ARM/ARMMCInstLower.cpp +++ b/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; } |