[Git][ghc/ghc][wip/t23702] Add -finfo-table-map-omit-fallback -finfo-table-map-omit-stack

Finley McIlwaine (@FinleyMcIlwaine) gitlab at gitlab.haskell.org
Sat Jul 22 16:06:35 UTC 2023



Finley McIlwaine pushed to branch wip/t23702 at Glasgow Haskell Compiler / GHC


Commits:
8f9554b8 by Finley McIlwaine at 2023-07-22T10:05:58-06:00
Add -finfo-table-map-omit-fallback -finfo-table-map-omit-stack

The -finfo-table-map-omit-stack flag omits STACK info tables from the info
table map, and the -finfo-table-map-omit-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 tables
were omitted.

Adds a test that verifies that passing each combination of these flags
results in the correct output for -dipe-stats.

This commit also refactors a lot of the logic around extracting info tables
from the Cmm results and building the info table map.

Fixes #23702

- - - - -


12 changed files:

- compiler/GHC/Cmm.hs
- compiler/GHC/Driver/Config/StgToCmm.hs
- compiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/GenerateCgIPEStub.hs
- compiler/GHC/Driver/Session.hs
- compiler/GHC/Runtime/Heap/Layout.hs
- compiler/GHC/StgToCmm/Config.hs
- compiler/GHC/StgToCmm/Prof.hs
- compiler/GHC/StgToCmm/Utils.hs
- docs/users_guide/9.8.1-notes.rst
- docs/users_guide/debug-info.rst
- docs/users_guide/debugging.rst


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8f9554b810c96f08e9b1c2e1089581671fa41fd2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8f9554b810c96f08e9b1c2e1089581671fa41fd2
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230722/6fa91a8d/attachment.html>


More information about the ghc-commits mailing list