Add NOINLINE pragma to builtinRules
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 25 Sep 2017 22:34:21 +0000 (18:34 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 26 Sep 2017 02:43:52 +0000 (22:43 -0400)
commitd11611f5739284cc6aab9b2636ac6485352107ea
tree352b55d544e110f2763e7a581b5a32dc04d51fee
parent9acbeb5a4f923726a847da4db03ca4f540ea478b
Add NOINLINE pragma to builtinRules

As mentioned in #14275, GHC will otherwise decide to produce unfoldings
for this rather large binding, making recompilation more expensive than
necessary. Since inlining is almost certainly not fruitful mark it as
NOINLINE.

[skip ci]

Test Plan: Validate

Reviewers: austin

Subscribers: rwbarton, thomie

GHC Trac Issues: #14275

Differential Revision: https://phabricator.haskell.org/D4023
compiler/prelude/PrelRules.hs