[GHC] #14816: Missed Called Arity opportunity?

GHC ghc-devs at haskell.org
Tue Feb 20 05:13:46 UTC 2018


#14816: Missed Called Arity opportunity?
-------------------------------------+-------------------------------------
        Reporter:  dfeuer            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 Your workaround does work. Inlining `insertModifying` (in the real-life
 case) is probably a bad idea. Your workaround does work. An alternative
 workaround does too:

 {{{#!hs
 test k a f m = insertModifyingArr k (oneShot $ blink (f a)) m
 }}}

 I'm glad to hear someone's been thinking about this issue; I'm much less
 glad that I've spent so much time coming up with a test case for something
 that's already known!

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


More information about the ghc-tickets mailing list