[GHC] #12620: Allow the user to prevent floating and CSE
GHC
ghc-devs at haskell.org
Thu Sep 29 07:46:35 UTC 2016
#12620: Allow the user to prevent floating and CSE
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: feature request | Status: new
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: #9520, #8457 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
I think that "noupdate" would require some careful thought. What if I say
{{{
f x = if ... then Yield blah x
else ...
}}}
Then the "noupdate" second field of `Yield` is just the parameter to `f`.
Does the caller have to know not to build an updatable thunk. And why is
updating so bad?
(Confession: I have not yet read Edsko's post. But I it should be
possible to give a crisp explanation of what any language feature does in
a standalone way.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12620#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list