Add -finfo-table-map-with-fallback -finfo-table-map-with-stack
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. 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
parent
b66ad78a
No related branches found
No related tags found
Pipeline #81817 canceled
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Cmm.hs 2 additions, 3 deletionscompiler/GHC/Cmm.hs
- compiler/GHC/Driver/Config/StgToCmm.hs 2 additions, 0 deletionscompiler/GHC/Driver/Config/StgToCmm.hs
- compiler/GHC/Driver/Flags.hs 2 additions, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/GenerateCgIPEStub.hs 99 additions, 49 deletionscompiler/GHC/Driver/GenerateCgIPEStub.hs
- compiler/GHC/Driver/Session.hs 7 additions, 5 deletionscompiler/GHC/Driver/Session.hs
- compiler/GHC/Runtime/Heap/Layout.hs 3 additions, 3 deletionscompiler/GHC/Runtime/Heap/Layout.hs
- compiler/GHC/StgToCmm/Config.hs 3 additions, 2 deletionscompiler/GHC/StgToCmm/Config.hs
- compiler/GHC/StgToCmm/Prof.hs 4 additions, 4 deletionscompiler/GHC/StgToCmm/Prof.hs
- compiler/GHC/StgToCmm/Utils.hs 46 additions, 19 deletionscompiler/GHC/StgToCmm/Utils.hs
- docs/users_guide/9.10.1-notes.rst 12 additions, 0 deletionsdocs/users_guide/9.10.1-notes.rst
- docs/users_guide/9.8.1-notes.rst 2 additions, 2 deletionsdocs/users_guide/9.8.1-notes.rst
- docs/users_guide/debug-info.rst 60 additions, 1 deletiondocs/users_guide/debug-info.rst
- docs/users_guide/debugging.rst 2 additions, 1 deletiondocs/users_guide/debugging.rst
- docs/users_guide/exts/implicit_parameters.rst 1 addition, 1 deletiondocs/users_guide/exts/implicit_parameters.rst
- docs/users_guide/phases.rst 4 additions, 4 deletionsdocs/users_guide/phases.rst
- testsuite/tests/rts/ipe/IpeStats/Fold.hs 5188 additions, 0 deletionstestsuite/tests/rts/ipe/IpeStats/Fold.hs
- testsuite/tests/rts/ipe/IpeStats/Makefile 12 additions, 0 deletionstestsuite/tests/rts/ipe/IpeStats/Makefile
- testsuite/tests/rts/ipe/IpeStats/all.T 4 additions, 0 deletionstestsuite/tests/rts/ipe/IpeStats/all.T
- testsuite/tests/rts/ipe/IpeStats/no_omit.stdout 18 additions, 0 deletionstestsuite/tests/rts/ipe/IpeStats/no_omit.stdout
- testsuite/tests/rts/ipe/IpeStats/omit_fallback.stdout 18 additions, 0 deletionstestsuite/tests/rts/ipe/IpeStats/omit_fallback.stdout
Loading
Please register or sign in to comment