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 | 807926a9453f6acbef5c3749bfb7edcc9c3932cb (patch) | |
tree | 69d6bd43b5a7c7e3bba1943b41782cd4e4f320d7 /lib/Support | |
parent | e213f3f97241788825900a62f3fe1535ae96a1d7 (diff) | |
download | external_llvm-807926a9453f6acbef5c3749bfb7edcc9c3932cb.zip external_llvm-807926a9453f6acbef5c3749bfb7edcc9c3932cb.tar.gz external_llvm-807926a9453f6acbef5c3749bfb7edcc9c3932cb.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APFloat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 179cf46..feb2599 100644 --- a/lib/Support/APFloat.cpp +++ b/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; |