Skip to content
  • Joachim Breitner's avatar
    Improve the Occurrence Analyzer’s handling of one-shot functions · a1980ecb
    Joachim Breitner authored and Ben Gamari's avatar Ben Gamari committed
    When determining whether an expression is used saturatedly, count the
    number of value arguments that the occurrence analyser sees, and add
    the number of one-shot arguments that we know (from the strictness
    analyser) are passed from the context.
    
    perf results suggest no noticable change in allocations, reduction of
    code sizes, and performance regression possibliy due to loss of join
    points.
    
    Test Plan: perf.haskell.org
    
    Reviewers: simonpj, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D3089
    a1980ecb