
#16335: Make CPR Analysis more aggressive for inductive cases -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: task | Status: new Priority: normal | Milestone: ⊥ Component: Compiler | Version: 8.6.3 Resolution: | Keywords: CPRAnalysis Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Nicely characterised. CPR (to one level) is always sound; it may just do some unnecessary reboxing. So we could just try saying that a function has the CPR property if ''any'' of its case branches do, rather than (as now) if 'all' do. That would, I assume, be a rather easy experiment to try. (It'd be lovely to know what are the hot branches!) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16335#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler