[GHC] #12847: ghci -fobject-code -O2 doesn't do the same optimisations as ghc --make -O2

GHC ghc-devs at haskell.org
Sun Mar 3 11:00:52 UTC 2019


#12847: ghci -fobject-code -O2 doesn't do the same optimisations as ghc --make -O2
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  duplicate         |             Keywords:
Operating System:  Other             |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RolandSenn):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 This is the same bug as in #13002. During startup without a -O flag on the
 command line, GHCi misses to store optimization data (like inline pragmas
 and rewrite rules). After a :set -O2 this optimization data is missing.

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


More information about the ghc-tickets mailing list