summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-03-11 12:19:02 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-12 07:03:16 -0500
commit7fe0714326080540945fb780cdf65e90e4b49d2f (patch)
tree86c434fcfc7878d3bc51d1351bd8531f0c5bc6ff
parentcf081476eb60ba8d65335234b654b457154b9d83 (diff)
downloadhaskell-7fe0714326080540945fb780cdf65e90e4b49d2f.tar.gz
Rename -fprof-late-ccs to -fprof-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'])