diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2017-02-11 19:20:24 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-02-11 19:20:25 -0500 |
commit | a1980ecb5626ec85fc14fbd217e2d16c7d50a120 (patch) | |
tree | 7e8ea9f811d966f5e445ab5adb603915f27537cf /compiler/backpack | |
parent | 17b1e0bae7c0d7b4d3f8e1847e919c0e882e55c6 (diff) | |
download | haskell-a1980ecb5626ec85fc14fbd217e2d16c7d50a120.tar.gz |
Improve the Occurrence Analyzer’s handling of one-shot functions
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
Diffstat (limited to 'compiler/backpack')
0 files changed, 0 insertions, 0 deletions