
#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 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): -------------------------------------+------------------------------------- Comment (by thomie): I built various trees on Windows 64-bit using BuildFlavour=perf: * current HEAD (78053f449d47a90c977ec3a893524f2cdb5d33f9) with the change to compiler/utils/Pretty.hs reverted (5d57087e314bd484dbe14958f9b422be3ac6641a) * current HEAD + NOINLINE pragmas on above_ and beside_ * current HEAD || measurement || HEAD+revert || HEAD+INLINE || HEAD || || du -bhs compiler/stage2/build/PprCmm.o || 106K || 132K || 203K || || du -bhs compilre/stage2/build/CLabel.o || 838K || 336K || 371K || || du -bhs compiler/stage2/build || 503M || 517M || 533M || So I confirm your findings: PprCmm.o has doubled in size, and adding NOLINE pragmas brings it back to 20-30%. I compared some other .o files, and found to my surprise that CLabel.o has however more than halved in size! But since the total size of the stage2/build directory has increased, we should probably do something. I don't understand yet why adding NOINLINE on above_ and beside_ doesn't bring the sizes back to the baseline. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10878#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler