diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-08-12 14:07:34 -0400 |
---|---|---|
committer | Sebastian Graf <sebastian.graf@kit.edu> | 2020-11-19 21:30:45 +0100 |
commit | 2e36cda155d19228967572dfde036785bc80ef1b (patch) | |
tree | 9c11cc3a1055189ab33cf2a21ac5f6e773af04c2 /compiler/GHC/Core/Opt/Monad.hs | |
parent | 160d80c64b1ed39042b0914f79b134157494b4b3 (diff) | |
download | haskell-wip/T18566.tar.gz |
Introduce -fprof-callers flagwip/T18566
This introducing a new compiler flag to provide a convenient way to
introduce profiler cost-centers on all occurrences of the named
identifier.
Closes #18566.
Diffstat (limited to 'compiler/GHC/Core/Opt/Monad.hs')
-rw-r--r-- | compiler/GHC/Core/Opt/Monad.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/Core/Opt/Monad.hs b/compiler/GHC/Core/Opt/Monad.hs index bdacfba90b..21b4403e94 100644 --- a/compiler/GHC/Core/Opt/Monad.hs +++ b/compiler/GHC/Core/Opt/Monad.hs @@ -129,6 +129,7 @@ data CoreToDo -- These are diff core-to-core passes, | CoreTidy | CorePrep + | CoreAddCallerCcs | CoreOccurAnal instance Outputable CoreToDo where @@ -149,6 +150,7 @@ instance Outputable CoreToDo where ppr CoreDesugar = text "Desugar (before optimization)" ppr CoreDesugarOpt = text "Desugar (after optimization)" ppr CoreTidy = text "Tidy Core" + ppr CoreAddCallerCcs = text "Add caller cost-centres" ppr CorePrep = text "CorePrep" ppr CoreOccurAnal = text "Occurrence analysis" ppr CoreDoPrintCore = text "Print core" |