[GHC] #16335: Make CPR Analysis more aggressive for inductive cases
GHC
ghc-devs at haskell.org
Mon Feb 18 17:04:42 UTC 2019
#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
More information about the ghc-tickets
mailing list