Automatically add SCCs to INLINABLE bindings
authorDavid Feuer <david.feuer@gmail.com>
Fri, 12 May 2017 18:37:36 +0000 (14:37 -0400)
committerDavid Feuer <David.Feuer@gmail.com>
Fri, 12 May 2017 18:37:37 +0000 (14:37 -0400)
commitab91daf2cb8a4a8558727ebe30a662a2ddf290e1
tree7dc08f11ff7aadf9f89d34e8fef509df3d3f8b1d
parenta13adcf8cfc650979a80101c0879c11a507734f9
Automatically add SCCs to INLINABLE bindings

Instead of excluding `isAnyInlinePragma`, just exclude
`isInlinePragma`. This makes GHC behave as documented;
the user's guide only indicates that GHC does not automatically
add SCCs to `INLINE` bindings.

Fixes #12962.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: DemiMarie, osa1, Mikolaj, simonpj, rwbarton, thomie

GHC Trac Issues: #12962

Differential Revision: https://phabricator.haskell.org/D3550
compiler/deSugar/Coverage.hs
testsuite/tests/profiling/should_run/T12962.hs [new file with mode: 0644]
testsuite/tests/profiling/should_run/T12962.prof.sample [new file with mode: 0644]
testsuite/tests/profiling/should_run/all.T
testsuite/tests/profiling/should_run/profinline001.prof.sample