[commit: ghc] master: Reduce the size of string literals in binaries. (b7e88ee)
git at git.haskell.org
git at git.haskell.org
Wed Dec 7 00:22:26 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad/ghc
>---------------------------------------------------------------
commit b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad
Author: Thijs Alkemade <me at thijsalkema.de>
Date: Tue Dec 6 17:12:17 2016 -0500
Reduce the size of string literals in binaries.
Removed the alignment for strings and mark then as cstring sections in
the generated asm so the linker can merge duplicate sections.
Reviewers: rwbarton, trofi, austin, trommler, simonmar, hvr, bgamari
Reviewed By: hvr, bgamari
Subscribers: simonpj, hvr, thomie
Differential Revision: https://phabricator.haskell.org/D1290
GHC Trac Issues: #9577
>---------------------------------------------------------------
b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad
compiler/cmm/CLabel.hs | 8 +++++--
compiler/cmm/Cmm.hs | 1 +
compiler/cmm/CmmUtils.hs | 7 ++++--
compiler/cmm/PprCmmDecl.hs | 1 +
compiler/llvmGen/LlvmCodeGen/Data.hs | 2 ++
compiler/nativeGen/PPC/Ppr.hs | 6 +++++
compiler/nativeGen/PprBase.hs | 3 +++
compiler/nativeGen/SPARC/Ppr.hs | 3 +++
compiler/nativeGen/X86/Ppr.hs | 26 +++++++++++++++++-----
testsuite/tests/codeGen/should_run/T9577.hs | 7 ++++++
.../tests/codeGen/should_run/T9577.stdout | 0
testsuite/tests/codeGen/should_run/T9577_A.hs | 8 +++++++
testsuite/tests/codeGen/should_run/all.T | 1 +
13 files changed, 64 insertions(+), 9 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad
More information about the ghc-commits
mailing list