[GHC] #13001: EnumFromThenTo is is not a good producer
GHC
ghc-devs at haskell.org
Thu Jan 5 10:43:32 UTC 2017
#13001: EnumFromThenTo is is not a good producer
-------------------------------------+-------------------------------------
Reporter: George | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64
Type of failure: Runtime | (amd64)
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
I think perhaps you mean that in the call
{{{
I# x `c` go_up (x +# delta)
}}}
since GHC doesn't know `c` is strict, it'll allocate a thunk for the
second argument. Quite true. And that does mean it'd be good to inline
`efdtIntUpFB`, I agree.
But still, fewer Int boxes is better regardless.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13001#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list