
#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