Make certainlyWillInline more conservative, so that it is never true of thunks. ...
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 11 Nov 2011 22:04:20 +0000 (22:04 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 11 Nov 2011 23:20:40 +0000 (23:20 +0000)
commit479504030370947ff3e8d62adb193dd492cf5725
tree91a3e055b4fc37317cdc8db86dc9ab762eabf82b
parenta522c3b25eea1fe40edae7052335acce75e8a1c3
Make certainlyWillInline more conservative, so that it is never true of thunks.  Otherwise the worker-wrapper phase can make a thunk into an unconditionally inline UnfWhen thing, which is Very Bad Thing.  Shown up by Trac #5623.

See Note [certainlyWillInline: be caseful of thunks].
compiler/coreSyn/CoreUnfold.lhs