Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Finley McIlwaine's avatar
    c237fe04
    Add -finfo-table-map-with-fallback -finfo-table-map-with-stack · c237fe04
    Finley McIlwaine authored and Zubin's avatar Zubin committed
    The -fno-info-table-map-with-stack flag omits STACK info tables from the info
    table map, and the -fno-info-table-map-with-fallback flag omits info tables
    with defaulted source locations from the map. In a test on the Agda codebase
    the build results were about 7% smaller when both of those types of tables
    were omitted.
    
    Adds a test that verifies that passing each combination of these flags
    results in the correct output for -dipe-stats, which is disabled for the js
    backend since profiling is not implemented.
    
    This commit also refactors a lot of the logic around extracting info tables
    from the Cmm results and building the info table map.
    
    This commit also fixes some issues in the users guide rst source to fix
    warnings that were noticed while debugging the documentation for these flags.
    
    Fixes #23702
    
    (cherry picked from commit 261c4acb)
    c237fe04
    History
    Add -finfo-table-map-with-fallback -finfo-table-map-with-stack
    Finley McIlwaine authored and Zubin's avatar Zubin committed
    The -fno-info-table-map-with-stack flag omits STACK info tables from the info
    table map, and the -fno-info-table-map-with-fallback flag omits info tables
    with defaulted source locations from the map. In a test on the Agda codebase
    the build results were about 7% smaller when both of those types of tables
    were omitted.
    
    Adds a test that verifies that passing each combination of these flags
    results in the correct output for -dipe-stats, which is disabled for the js
    backend since profiling is not implemented.
    
    This commit also refactors a lot of the logic around extracting info tables
    from the Cmm results and building the info table map.
    
    This commit also fixes some issues in the users guide rst source to fix
    warnings that were noticed while debugging the documentation for these flags.
    
    Fixes #23702
    
    (cherry picked from commit 261c4acb)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.