#4978: Continuation passing style loop doesn't compile into a loop
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.4.1
Component: Compiler | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by simonmar):
Replying to [comment:16 simonpj]:
> Perhaps primops applications should count as practically free for
inlining purposes?
I think you could get away with three classifications for the purposes of
code size: `touch#` should be free, simple inline primops (e.g. `+#`,
`writeWord8OffAddr#`) should be very cheap (they are just one
instruction), and all others should look a bit bigger (the same as an
application, probably).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4978#comment:18>
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