On Sat, Mar 4, 2017 at 11:58 AM, Saurabh Nanda <saurabhnanda@gmail.com> wrote:
Why can't GHC automatically consider *every* function as INLINABLE? Let the GHC heuristics decide what is worthy of being inlined. What's the downside?

At a guess, performance of both .hi file handling and analysis for inlining. Don't people already gripe about how "slow" ghc is?

Also, inlining the wrong thing can completely derail other optimizations (e.g. fusion).

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net