diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2015-09-02 15:58:38 -0700 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2015-09-02 16:05:55 -0700 |
commit | 6066e1fa6770f2cae3114ab4d4dbde04176863cb (patch) | |
tree | be939e47eea14de6b40e985f61b94c4aeb3afcda /testsuite/tests/deSugar | |
parent | bd16e0bc6af13f1347235782935f7dcd40b260e2 (diff) | |
download | haskell-6066e1fa6770f2cae3114ab4d4dbde04176863cb.tar.gz |
Make Data.List.foldr1 inlinewip/T10830
Previously, foldr1 would be defiend recursively and thus not inline.
This is bad, for example, when maximumBy has a strict comparison
function: Before the BBP, it was implemented via foldl1, which inlined
and yielded good code. With BBP, it goes via foldr1, so we better inline
this as well. Fixes #10830.
Diffstat (limited to 'testsuite/tests/deSugar')
0 files changed, 0 insertions, 0 deletions