Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Simon Marlow's avatar
    1d401b43
    Fix a profiling bug · 1d401b43
    Simon Marlow authored and thoughtpolice's avatar thoughtpolice committed
    Summary:
    We were erroneously discarding SCCs on function-typed variables.
    These can affect the call stack, so we have to retain them.  The bug
    was introduced during the recent SourceNote refactoring.
    
    This is an alternative to the fix proposed in D616.  I also added the
    scc005 test from that diff, which works with this change.
    
    While I was here, I also fixed up the other profiling tests, marking a
    few as expect_broken_for(10037) where the opt/unopt output differs in
    non-fatal ways.
    
    Test Plan: profiling tests
    
    Reviewers: scpmw, ezyang, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D636
    
    GHC Trac Issues: #10007
    
    (cherry picked from commit daed18c3)
    1d401b43
    History
    Fix a profiling bug
    Simon Marlow authored and thoughtpolice's avatar thoughtpolice committed
    Summary:
    We were erroneously discarding SCCs on function-typed variables.
    These can affect the call stack, so we have to retain them.  The bug
    was introduced during the recent SourceNote refactoring.
    
    This is an alternative to the fix proposed in D616.  I also added the
    scc005 test from that diff, which works with this change.
    
    While I was here, I also fixed up the other profiling tests, marking a
    few as expect_broken_for(10037) where the opt/unopt output differs in
    non-fatal ways.
    
    Test Plan: profiling tests
    
    Reviewers: scpmw, ezyang, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D636
    
    GHC Trac Issues: #10007
    
    (cherry picked from commit daed18c3)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.