[GHC] #9349: excessive inlining with -fpre-inlining

GHC ghc-devs at haskell.org
Wed Jul 23 20:02:10 UTC 2014


#9349: excessive inlining with -fpre-inlining
-------------------------------------+-------------------------------------
              Reporter:  rwbarton    |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:  Runtime     |       Blocked By:
  performance bug                    |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Aha, it is the state hack marking the argument to `replicateM_` as one-
 shot, followed by pre-inlining.

 What was rather surprising to me as an end user was that `{-# NOINLINE
 rangeMap #-}` had no effect. I guess the pre-inlining does not care about
 such pragmas.

 Simon, any comments?

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


More information about the ghc-tickets mailing list