#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 simonpj):
Johan, if `$weta` was inlined would you be happy?
It's not being inlined just because GHC thinks it's too big (ie static
code size; there's no work-duplication issue here). You can experiment by
increasing the inlining threshold `-funfolding-use-threshold=N`. The
default is 6; try increasing it to 15 or so.
Perhaps primops applications should count as practically free for inlining
purposes?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4978#comment:16>
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