add -fprof-late-overloaded and -fprof-late-overloaded-calls
* Refactor late cost centre insertion for extensibility * Add two more late cost centre insertion methods that add SCCs to overloaded top level bindings and call sites with dictionary arguments. * Some tests for the basic functionality of the new insertion methods (cherry picked from commit dc9303c2)
Showing
- compiler/GHC/Core/LateCC.hs 82 additions, 152 deletionscompiler/GHC/Core/LateCC.hs
- compiler/GHC/Core/LateCC/OverloadedCalls.hs 176 additions, 0 deletionscompiler/GHC/Core/LateCC/OverloadedCalls.hs
- compiler/GHC/Core/LateCC/TopLevelBinds.hs 105 additions, 0 deletionscompiler/GHC/Core/LateCC/TopLevelBinds.hs
- compiler/GHC/Core/LateCC/Types.hs 39 additions, 0 deletionscompiler/GHC/Core/LateCC/Types.hs
- compiler/GHC/Core/Opt/Pipeline.hs 2 additions, 2 deletionscompiler/GHC/Core/Opt/Pipeline.hs
- compiler/GHC/Driver/Flags.hs 2 additions, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Main.hs 71 additions, 21 deletionscompiler/GHC/Driver/Main.hs
- compiler/GHC/Driver/Session.hs 6 additions, 0 deletionscompiler/GHC/Driver/Session.hs
- compiler/GHC/Tc/Utils/TcType.hs 1 addition, 1 deletioncompiler/GHC/Tc/Utils/TcType.hs
- compiler/ghc.cabal.in 3 additions, 0 deletionscompiler/ghc.cabal.in
- docs/users_guide/profiling.rst 36 additions, 0 deletionsdocs/users_guide/profiling.rst
- testsuite/tests/profiling/should_run/all.T 27 additions, 0 deletionstestsuite/tests/profiling/should_run/all.T
- testsuite/tests/profiling/should_run/scc-prof-overloaded-calls001.hs 24 additions, 0 deletions...ests/profiling/should_run/scc-prof-overloaded-calls001.hs
- testsuite/tests/profiling/should_run/scc-prof-overloaded-calls001.prof.sample 26 additions, 0 deletions...iling/should_run/scc-prof-overloaded-calls001.prof.sample
- testsuite/tests/profiling/should_run/scc-prof-overloaded-calls001.stdout 1 addition, 0 deletions.../profiling/should_run/scc-prof-overloaded-calls001.stdout
- testsuite/tests/profiling/should_run/scc-prof-overloaded-calls002.hs 65 additions, 0 deletions...ests/profiling/should_run/scc-prof-overloaded-calls002.hs
- testsuite/tests/profiling/should_run/scc-prof-overloaded-calls002.prof.sample 31 additions, 0 deletions...iling/should_run/scc-prof-overloaded-calls002.prof.sample
- testsuite/tests/profiling/should_run/scc-prof-overloaded-calls002.stdout 8 additions, 0 deletions.../profiling/should_run/scc-prof-overloaded-calls002.stdout
- testsuite/tests/profiling/should_run/scc-prof-overloaded001.hs 24 additions, 0 deletions...uite/tests/profiling/should_run/scc-prof-overloaded001.hs
- testsuite/tests/profiling/should_run/scc-prof-overloaded001.prof.sample 25 additions, 0 deletions...s/profiling/should_run/scc-prof-overloaded001.prof.sample
Loading
Please register or sign in to comment