#4306: UNPACK can lead to unnecessary copying and wasted stack space
---------------------------------------------+------------------------------
Reporter: Olathe | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: simplCore/should_compile/T4306 | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Runtime performance bug |
---------------------------------------------+------------------------------
Changes (by simonpj):
* status: new => closed
* testcase: => simplCore/should_compile/T4306
* resolution: => fixed
Comment:
Although this isn't a release-critical bug I couldn't resist fixing it
{{{
Tue Sep 14 12:38:27 BST 2010 [email protected]
* Make absent-arg wrappers work for unlifted types (fix Trac #4306)
Previously we were simply passing arguments of unlifted
type to a wrapper, even if they were absent, which was
stupid.
See Note [Absent error Id] in WwLib.
M ./compiler/coreSyn/CoreUtils.lhs -1 +5
M ./compiler/stranal/WwLib.lhs -9 +21
}}}
It was just an un-implemented corner of the worker/wrapper construction
machinery.
Thanks for pointing it out.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4306#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