[GHC] #12125: Field accessors unnecessarily kept alive

#12125: Field accessors unnecessarily kept alive -------------------------------------+------------------------------------- Reporter: osa1 | Owner: osa1 Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): Phab:D2270 | Wiki Page: -------------------------------------+------------------------------------- Suppose you have a record with some non-exported field accessors, like so: {{{#!haskell module Lib (Rec) where data Rec = Rec { f1 :: Int , f2 :: Int , f3 :: Int , f4 :: Int , f5 :: Int } }}} Code for fields `f1`, `f2` ... are redundantly generated, optimized etc. and they made it to the object file, causing wasted compile times and bloated object files. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12125 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12125: Field accessors unnecessarily kept alive -------------------------------------+------------------------------------- Reporter: osa1 | Owner: osa1 Type: feature request | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2270 Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * status: new => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12125#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12125: Field accessors unnecessarily kept alive -------------------------------------+------------------------------------- Reporter: osa1 | Owner: osa1 Type: feature request | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2270 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.0.2 Comment: This was merged in b5ec09dff6b865550f3bd225f86028a304596c61. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12125#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12125: Field accessors unnecessarily kept alive -------------------------------------+------------------------------------- Reporter: osa1 | Owner: osa1 Type: feature request | Status: closed Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2270 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.0` as 9d9eaeca03e138e0b35351c9401c832996398641. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12125#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC