[GHC] #14361: GHC HEAD miscompiles `text-containers`
GHC
ghc-devs at haskell.org
Sat Nov 4 15:00:36 UTC 2017
#14361: GHC HEAD miscompiles `text-containers`
-------------------------------------+-------------------------------------
Reporter: hvr | Owner: (none)
Type: bug | Status: new
Priority: high | Milestone: 8.4.1
Component: Compiler | Version: 8.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
Another microoptimization that might be interesting to investigate is to
try being a bit more clever when generating code for things like (where
the type of `expr` is an enumeration),
{{{
case expr of
A -> SomeCaf
B -> SomeCaf'
C -> SomeCaf''
...
}}}
Currently we branch on the tag of `expr` to one of a set of a
continuations, all of which simply load the result and return. One could
eliminate the branches by instead loading the continuation from a table
and returning.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14361#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list