#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):
Hmm, I didn't realise this is intentional. FWIW, I disagree with this
design. If I want both rules and `SPECIALISE`, I'll add explicit phase
control to my `SPECIALISE` pragmas.
I think GHC should at least warn if `SPECIALISE` generates a rule with a
`NEVER` activation, like in my example. Also, how do I `SPECIALISE` with
an `ALWAYS` activation if the specialised function has a `NOINLINE`
pragma?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5779#comment:2>
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