summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-03-11 12:19:02 +0100
committerAndreas Klebinger <klebinger.andreas@gmx.at>2022-03-11 12:19:02 +0100
commite367b57f09b7375a5551df50c61fcdcc0912c9dc (patch)
treee08f26a1009e785cd0cba40c323ceeadd019fdd0
parent844cf1e14fe031c9ed7597b00a1183ad9b1ccc0a (diff)
downloadhaskell-wip/andreask/prof-late.tar.gz
Rename -fprof-late-ccs to -fprof-latewip/andreask/prof-late
-rw-r--r--compiler/GHC/Driver/Session.hs2
-rw-r--r--docs/users_guide/9.4.1-notes.rst2
-rw-r--r--docs/users_guide/profiling.rst4
-rw-r--r--testsuite/tests/profiling/should_compile/all.T4
4 files changed, 6 insertions, 6 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index f75a5e0d92..26d34b63af 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -3422,7 +3422,7 @@ fFlagsDeps = [
flagSpec "print-typechecker-elaboration" Opt_PrintTypecheckerElaboration,
flagSpec "prof-cafs" Opt_AutoSccsOnIndividualCafs,
flagSpec "prof-count-entries" Opt_ProfCountEntries,
- flagSpec "prof-late-ccs" Opt_ProfLateCcs,
+ flagSpec "prof-late" Opt_ProfLateCcs,
flagSpec "regs-graph" Opt_RegsGraph,
flagSpec "regs-iterative" Opt_RegsIterative,
depFlagSpec' "rewrite-rules" Opt_EnableRewriteRules
diff --git a/docs/users_guide/9.4.1-notes.rst b/docs/users_guide/9.4.1-notes.rst
index 0f92ab6eb5..a2cced7294 100644
--- a/docs/users_guide/9.4.1-notes.rst
+++ b/docs/users_guide/9.4.1-notes.rst
@@ -42,7 +42,7 @@ Compiler
- New :ghc-flag:`-Wredundant-strictness-flags` that checks for strictness flags
(``!``) applied to unlifted types, which are always strict.
-- New :ghc-flag:`-fprof-late-ccs` that adds automatic CCS annotations to all
+- New :ghc-flag:`-fprof-late` that adds automatic CCS annotations to all
top level functions *after* core optimisation have been run.
- A new type of plugin: defaulting plugins. These plugins can propose
diff --git a/docs/users_guide/profiling.rst b/docs/users_guide/profiling.rst
index 9a905ba3de..b9b5d371f9 100644
--- a/docs/users_guide/profiling.rst
+++ b/docs/users_guide/profiling.rst
@@ -438,10 +438,10 @@ compiled program.
or the :rts-flag:`-xc` RTS flag (:ref:`rts-options-debugging`) for more
details.
-.. ghc-flag:: -fprof-late-ccs
+.. ghc-flag:: -fprof-late
:shortdesc: Auto-add ``SCC``\\ s to all top level bindings *after* the optimizer has run.
:type: dynamic
- :reverse: -fno-prof-late-ccs
+ :reverse: -fno-prof-late
:category:
:since: 9.4.1
diff --git a/testsuite/tests/profiling/should_compile/all.T b/testsuite/tests/profiling/should_compile/all.T
index 630b692f10..9e460e153b 100644
--- a/testsuite/tests/profiling/should_compile/all.T
+++ b/testsuite/tests/profiling/should_compile/all.T
@@ -2,8 +2,8 @@
# added for the profiling ways makes it pass
test('prof001', [only_ways(['normal']), req_profiling], compile_and_run, ['-prof -fprof-cafs'])
test('prof002', [only_ways(['normal']), req_profiling], compile_and_run, ['-prof -fprof-cafs'])
-test('prof-late-cc', [only_ways(['normal']), req_profiling], compile, ['-prof -fprof-late-ccs'])
-test('prof-late-cc2', [only_ways(['normal']), req_profiling], compile_and_run, ['-prof -fprof-late-ccs'])
+test('prof-late-cc', [only_ways(['normal']), req_profiling], compile, ['-prof -fprof-late'])
+test('prof-late-cc2', [only_ways(['normal']), req_profiling], compile_and_run, ['-prof -fprof-late'])
test('T2410', [only_ways(['normal']), req_profiling], compile, ['-O2 -prof -fprof-cafs'])
test('T5889', [only_ways(['normal']), req_profiling, extra_files(['T5889/A.hs', 'T5889/B.hs'])], multimod_compile, ['A B', '-O -prof -fno-prof-count-entries -v0'])