Changes between Version 1 and Version 2 of Ticket #14295


Ignore:
Timestamp:
Sep 27, 2017 8:58:11 PM (2 years ago)
Author:
dfeuer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14295 – Description

    v1 v2  
    2525
    2626{{{#!hs
    27 foo f x = case x <=# 1# of
     27foo f x = case leWord# (intToWord# x) 1## of
    2828            1# -> f $! tagToEnum# x
    2929            _ -> f (error "tagToEnum# was used at Bool with tag ...")
    3030}}}
    3131
    32 which avoids an extra closure at the cost of a single `Int#` comparison. The same goes for arbitrary known enumeration types. I suspect the right place to fix this up is in CorePrep.
     32which avoids an extra closure at the cost of a single `Word#` comparison. The same goes for arbitrary known enumeration types. I suspect the right place to fix this up is in CorePrep.