Ensure that even bottoming functions have an unfolding
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2016 10:06:03 +0000 (10:06 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2016 12:34:33 +0000 (12:34 +0000)
commit11306d62250bcb8c40b1feb511ab90006dcd01d5
treef5b2bff696be01118e617b929e8a5cd9064e83d6
parent9a4af2c451baa685492ed576447c3ce2e335427d
Ensure that even bottoming functions have an unfolding

The payload of this change is to ensure that a bottoming function
still has an unfolding, just one with an UnfoldingGuidance of
UnfoldNever.

Previously it was getting an unfolding of NoUnfolding. I don't think
that was really /wrong/, but it was inconsistent with the general
principle of giving everthing an unfoding if we know it.  And it
seems tideier this way.
compiler/coreSyn/CoreUnfold.hs