diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-13 00:03:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 00:03:51 +0000 |
| commit | 0bf186906b0a6a4baca6621f54b79d799403e2b0 (patch) | |
| tree | 6fbaa85fa20b70bda6923cdd0b77723bde1d0bd9 /llvm/lib/Support | |
| parent | c3e39c0149d38797c3ede52a79f2f15e738a218f (diff) | |
| download | bcm5719-llvm-0bf186906b0a6a4baca6621f54b79d799403e2b0.tar.gz bcm5719-llvm-0bf186906b0a6a4baca6621f54b79d799403e2b0.zip | |
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.
llvm-svn: 66847
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/APFloat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 179cf4697f7..feb2599e914 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -439,8 +439,8 @@ powerOf5(integerPart *dst, unsigned int power) { 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; |

