[GHC] #5925: Add inline version of newArray#
GHC
cvs-ghc at haskell.org
Fri May 10 17:46:49 CEST 2013
#5925: Add inline version of newArray#
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.6.2
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: 4258 | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by tibbe):
My use case looks something like:
{{{
f c = case c of
C1 -> newArray# <known small size>
C2 -> newArray# <unknown small size>
}}}
Simon M, will the unknown small size case work in the implementation you
suggest (i.e. spot the known case and hoist its heap check to the top of
`f`)?
For the known case you say I should "compile those directly", but I have
no idea what that actually means.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5925#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list