[GHC] #11688: Bytestring break failing rewrite to breakByte and failing to eliminate boxing/unboxing
GHC
ghc-devs at haskell.org
Tue Mar 8 08:01:06 UTC 2016
#11688: Bytestring break failing rewrite to breakByte and failing to eliminate
boxing/unboxing
-------------------------------------+-------------------------------------
Reporter: alexbiehl | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by alexbiehl:
@@ -10,1 +10,1 @@
- I could reproduce the problem on OSX and Windows with GHC 7.10.3. Haven't
+ I can reproduce the problem on OSX and Windows with GHC 7.10.3. Haven't
New description:
Tyson Whitehead gives a detailed description of the problem
[https://github.com/haskell/bytestring/issues/70 here].
Key points:
- Program fails to rewrite {{{ ByteString.break (== x) chunk }}} to {{{
ByteString.breakByte x chunk }}}
- Missed unboxing opportunity (which led to 34gb additional allocations,
which is why he noticed it)
I can reproduce the problem on OSX and Windows with GHC 7.10.3. Haven't
tested Linux.
I repost it here to make sure it doesn't go unnoticed.
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11688#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list