[GHC] #5210: Add primops for copying/cloning byte arrays
GHC
cvs-ghc at haskell.org
Fri Jun 17 11:17:54 CEST 2011
#5210: Add primops for copying/cloning byte arrays
---------------------------------+------------------------------------------
Reporter: tibbe | Owner: dterei
Type: feature request | Status: patch
Priority: high | Milestone: 7.2.1
Component: Compiler | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by tibbe):
David you're absolutely correct: we don't need to assign these arguments
to temporaries. Fixed by the attached patch:
{{{
commit 3473e040abe5a2533078f418646248ec9aeaf750
Author: Johan Tibell <johan.tibell at gmail.com>
Date: Fri Jun 17 11:13:37 2011 +0200
codeGen: Make emitCopyByteArray less pessimistic
Assigning the arguments to temporaries was only needed in the case of
emitCopyArray, where the arguments are alive across the call. That is
not the case in emitCopyByteArray.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5210#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list