Skip to content
  • Joachim Breitner's avatar
    Add a final demand analyzer run right before TidyCore · f4fd98c7
    Joachim Breitner authored
    in order to have precise used-once information in the exported
    strictness signatures, as well as precise used-once information on
    thunks. This avoids the bad effects of #11731.
    
    The subsequent worker-wrapper pass is responsible for removing the
    demand environment part of the strictness signature. It does not run
    after the final demand analyzer pass, so remove this also in CoreTidy.
    
    The subsequent worker-wrapper pass is also responsible for removing
    used-once-information from the demands and strictness signatures, as
    these might not be preserved by the simplifier. This is _not_ done by
    CoreTidy, because we _do_ want this information, as produced by the last
    round of the demand analyzer, to be available to the code generator.
    
    Differential Revision: https://phabricator.haskell.org/D2073
    f4fd98c7