Split mkInlineUnfolding into two functions
authorDavid Feuer <david.feuer@gmail.com>
Tue, 17 Jan 2017 20:55:39 +0000 (15:55 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 17 Jan 2017 20:56:28 +0000 (15:56 -0500)
commitd360ec39bc9c1ba354c2254d4c4de505e3e10183
tree402fe3c07b8650a19e61d672962b9bf61f4e34cc
parente195add1f203a0e169a2ea6e58be8d7989e9e0a4
Split mkInlineUnfolding into two functions

Previously, `mkInlineUnfolding` took a `Maybe` argument indicating
whether the caller requested a specific arity.  This was not
self-documenting at call sites. Now we distinguish between
`mkInlineUnfolding` and `mkInlineUnfoldingWithArity`.

Reviewers: simonpj, austin, bgamari

Reviewed By: simonpj, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2933
compiler/basicTypes/MkId.hs
compiler/coreSyn/CoreUnfold.hs
compiler/deSugar/DsBinds.hs
compiler/deSugar/DsForeign.hs
compiler/simplCore/Simplify.hs
compiler/typecheck/TcInstDcls.hs
compiler/vectorise/Vectorise.hs
compiler/vectorise/Vectorise/Generic/PADict.hs
compiler/vectorise/Vectorise/Type/Env.hs
compiler/vectorise/Vectorise/Utils/Hoisting.hs