[llvm-commits] [llvm] r47739 - /llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Dan Gohman
gohman at apple.com
Thu Feb 28 17:27:13 PST 2008
Author: djg
Date: Thu Feb 28 19:27:13 2008
New Revision: 47739
URL: http://llvm.org/viewvc/llvm-project?rev=47739&view=rev
Log:
Simplify code using convertFromZeroExtendedInteger with an APInt
by using the new convertFromAPInt directly.
Modified:
llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?rev=47739&r1=47738&r2=47739&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp Thu Feb 28 19:27:13 2008
@@ -424,9 +424,9 @@
else if (CE->getType() == Type::X86_FP80Ty) {
const uint64_t zero[] = {0, 0};
APFloat apf = APFloat(APInt(80, 2, zero));
- (void)apf.convertFromZeroExtendedInteger(GV.IntVal.getRawData(),
- GV.IntVal.getBitWidth(), false,
- APFloat::rmNearestTiesToEven);
+ (void)apf.convertFromAPInt(GV.IntVal,
+ false,
+ APFloat::rmNearestTiesToEven);
GV.IntVal = apf.convertToAPInt();
}
return GV;
@@ -440,9 +440,9 @@
else if (CE->getType() == Type::X86_FP80Ty) {
const uint64_t zero[] = { 0, 0};
APFloat apf = APFloat(APInt(80, 2, zero));
- (void)apf.convertFromZeroExtendedInteger(GV.IntVal.getRawData(),
- GV.IntVal.getBitWidth(), true,
- APFloat::rmNearestTiesToEven);
+ (void)apf.convertFromAPInt(GV.IntVal,
+ true,
+ APFloat::rmNearestTiesToEven);
GV.IntVal = apf.convertToAPInt();
}
return GV;
More information about the llvm-commits
mailing list