[GHC] #6135: Unboxed Booleans

GHC ghc-devs at haskell.org
Sat Jan 18 21:52:24 UTC 2014


#6135: Unboxed Booleans
---------------------------------------------+-----------------------------
        Reporter:  benl                      |            Owner:  jstolarek
            Type:  feature request           |           Status:  closed
        Priority:  normal                    |        Milestone:  7.8.1
       Component:  Compiler                  |          Version:  7.4.1
      Resolution:  fixed                     |         Keywords:
Operating System:  Unknown/Multiple          |     Architecture:
 Type of failure:  None/Unknown              |  Unknown/Multiple
       Test Case:  primops/should_run/T6135  |       Difficulty:  Unknown
        Blocking:                            |       Blocked By:  8103,
                                             |  8103
                                             |  Related Tickets:  #605
---------------------------------------------+-----------------------------

Comment (by Lemming):

 Btw. LLVM usually represents boolean values by type `i1`. It would
 certainly be easier to translate `Bool#` to `i1`, than translating `Int#`
 to `i1` in a special case. But as I understand the `Bool#` type was
 finally rejected in order to optimize all enumeration types the same way,
 right?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/6135#comment:89>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list