[commit: ghc] master: Add new debugging flag -dinline-check (ecfb4d3)

git at git.haskell.org git at git.haskell.org
Mon Mar 26 02:53:54 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ecfb4d363daf06cda82a4b062eb4798dee99d0e3/ghc

>---------------------------------------------------------------

commit ecfb4d363daf06cda82a4b062eb4798dee99d0e3
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Mar 25 22:17:24 2018 -0400

    Add new debugging flag -dinline-check
    
    This flag reports a summary of the inlining decision for identifiers
    prefixed by the flag's argument.
    
    For example, `-dinline-check foo` will report why definitions whose
    prefix is `foo` are inlined or not.
    
    Previously the only way to get this information was to pass a
    combination of `-dverbose-core2core` and `-ddump-inlinings`.
    
    This combination led to a log of 12 million lines in a module of about
    200 lines I recently had to apply it to. This flag provides a much more
    direct way to find the occurence you care about.
    
    Reviewers: osa1, dfeuer, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4458


>---------------------------------------------------------------

ecfb4d363daf06cda82a4b062eb4798dee99d0e3
 compiler/coreSyn/CoreUnfold.hs             | 24 +++++++++++++++---------
 compiler/main/DynFlags.hs                  |  4 ++++
 docs/users_guide/debugging.rst             | 14 ++++++++++++++
 testsuite/tests/driver/all.T               |  1 +
 testsuite/tests/driver/inline-check.hs     | 12 ++++++++++++
 testsuite/tests/driver/inline-check.stderr | 26 ++++++++++++++++++++++++++
 6 files changed, 72 insertions(+), 9 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc ecfb4d363daf06cda82a4b062eb4798dee99d0e3


More information about the ghc-commits mailing list