[GHC] #10878: Near doubling of generated code size for compiler/cmm/PprC.hs with commit 5d57087e31

GHC ghc-devs at haskell.org
Mon Sep 14 02:16:20 UTC 2015


#10878: Near doubling of generated code size for compiler/cmm/PprC.hs with commit
5d57087e31
-------------------------------------+-------------------------------------
              Reporter:  erikd       |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:  8.0.1
             Component:  Compiler    |           Version:  7.11
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  Other
  Unknown/Multiple                   |
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 As noted in https://ghc.haskell.org/trac/ghc/ticket/7830#comment:28,
 changes to `compiler/utils/Pretty.hs` in commit 5d57087e31 results in a
 near doubling of the generated code size of compiler/cmm/PprC.hs` on
 x86_64/linux. On powerpc/linux this code growth caused this file to fail
 to build.

 At @rwbarton's suggestion, I added `NOINLINE` pragmas to `above_` and
 `beside_` of `compiler/utils/Pretty.hs` and that brought the generated
 code size down to be just a little more than 30% bigger than it was before
 commit 5d57087e31.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10878>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list