[GHC] #8326: Place heap checks common in case alternatives before the case

GHC ghc-devs at haskell.org
Sun Sep 28 03:05:56 UTC 2014


#8326: Place heap checks common in case alternatives before the case
-------------------------------------+-------------------------------------
              Reporter:  jstolarek   |            Owner:
                  Type:  task        |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.7
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:  #1498
             Test Case:              |
              Blocking:  8317        |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by carter):

 @dfeuer, (my interpretation is) this ticket is articulating how we'd
 *like* to write isTrue# and noting some of the optimization engineering
 thats needed to support writing things in the desired high level fashion.

 Your safety concern is at least in some small part spurious, because some
 of this optimization/engineering is about how to transform high level type
 safe code into that branch free form as optimizations in Core, STG and
 CMM.  That is, end users should not have to deal with this tomfoolery
 ever, but we'd still like to give them branch free code when its safe!

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


More information about the ghc-tickets mailing list