Skip to content
  • Simon Peyton Jones's avatar
    Inline data constructor wrappers in phase 2 only · fc6c222b
    Simon Peyton Jones authored and David Feuer's avatar David Feuer committed
    This patch prepares for my upcoming early-inlining patch. It arranges
    that data constructor wrappers are not inlined until Phase 2 (the
    first of the "normal" phases.)  That gives rules a chance to fire
    in the InitialPhase (aka "gentle").
    
    This has been a bit of a problem for a while, so it's nice to have
    a fix.  It should make no difference immediately, becuase currently
    nothing is inlined in the InitialPhase anyway.
    
    Reviewers: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D3193
    fc6c222b