#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 rl):
In fact, what guarantees does GHC give about specialisation vs. inlining?
If I have:
{{{
{-# INLINE [1] f #-}
f = e
{-# SPECIALISE f :: ... #-}
}}}
both the `INLINE` rule and the `SPECIALISE` rule are now only active in
phase 1. Does GHC guarantee to try the `SPECIALISE` rule before inlining?
I suspect not (I vaguely remember you saying that you no longer guarantee
that rule matching happens before inlining at some point).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5779#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs