[commit: ghc] master: Warn about missed specialisations for imports (a426154)

git at git.haskell.org git at git.haskell.org
Wed Aug 5 13:25:15 UTC 2015


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

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

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

commit a4261549afaee56b00fbea1b4bc1a07c95e60929
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Aug 5 13:37:18 2015 +0100

    Warn about missed specialisations for imports
    
    This change was provoked by Trac #10720, where a missing
    INLINEABLE pragma gave very poor performance.
    
    The change is to warn when an imported function is not specialised
    in a situation where the user expects it to be.
    
    New flags
      -fwarn-missed-specialisations
      -fwarn-all-missed-specialisations
    
    Documented in user manual.
    See Note [Warning about missed specialisations]


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

a4261549afaee56b00fbea1b4bc1a07c95e60929
 compiler/main/DynFlags.hs                          | 13 +++--
 compiler/specialise/Specialise.hs                  | 65 ++++++++++++++++------
 docs/users_guide/using.xml                         | 24 +++++---
 .../tests/simplCore/should_compile/T5359b.stderr   |  3 -
 4 files changed, 73 insertions(+), 32 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 a4261549afaee56b00fbea1b4bc1a07c95e60929


More information about the ghc-commits mailing list