[llvm-commits] [llvm] r66847 - /llvm/trunk/lib/Support/APFloat.cpp
Chris Lattner
sabre at nondot.org
Thu Mar 12 17:03:52 PDT 2009
Author: lattner
Date: Thu Mar 12 19:03:51 2009
New Revision: 66847
URL: http://llvm.org/viewvc/llvm-project?rev=66847&view=rev
Log:
Eliminate a 9640 byte static mutable initialized data item by moving it
to the stack. This shrinks all llvm tools by 9k, and improves reentrancy.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=66847&r1=66846&r2=66847&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Thu Mar 12 19:03:51 2009
@@ -439,8 +439,8 @@
{
static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
15625, 78125 };
- static integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
- static unsigned int partsCount[16] = { 1 };
+ integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
+ unsigned int partsCount[16] = { 1 };
integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5;
unsigned int result;
More information about the llvm-commits
mailing list