summaryrefslogtreecommitdiff
path: root/compiler/simplCore/SimplCore.hs
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2016-04-01 13:11:18 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2016-04-06 18:08:30 +0200
commit6a3b74cbe96f4bcd28c05648321ed979e9eb21e4 (patch)
tree31d87bc74a20e82829dfda5b7f5a333b342d9d92 /compiler/simplCore/SimplCore.hs
parent1e6ec1249b4da88fec9024598c2183e6fc0e96cd (diff)
downloadhaskell-wip/T11770.tar.gz
Demand Analyzer: Do not set OneShot information (second try)wip/T11770
as suggested in ticket:11770#comment:1. This code was buggy (#11770), and the occurrence analyzer does the same job anyways. This also elaborates the notes in the occurrence analyzer accordingly. Previously, the worker/wrapper code would go through lengths to transfer the oneShot annotations from the original function to both the worker and the wrapper. We now simply transfer the demand on the worker, and let the subsequent occurrence analyzer push this onto the lambda binders. This also requires the occurrence analyzer to do this more reliably. Previously, it would not hand out OneShot annotatoins to things that would not `certainly_inline` (and it might not have mattered, as the Demand Analysis might have handed out the annotations). Now we hand out one-shot annotations unconditionally. Differential Revision: https://phabricator.haskell.org/D2085
Diffstat (limited to 'compiler/simplCore/SimplCore.hs')
0 files changed, 0 insertions, 0 deletions