[GHC] #5779: SPECIALISE pragma generates wrong activations
GHC
cvs-ghc at haskell.org
Mon Jan 16 14:40:32 CET 2012
#5779: SPECIALISE pragma generates wrong activations
--------------------------------------+-------------------------------------
Reporter: rl | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.5
Resolution: invalid | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Runtime performance bug | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
--------------------------------------+-------------------------------------
Comment(by simonpj):
Because the common case is that you have
{{{
f x = e
{-# SPECIALISE f :: Int -> Int #-}
}}}
Then you are saying "if f doesn't inline by itself, use the specialised
version". That's a perfectly reasonable thing to say.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5779#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list