summaryrefslogtreecommitdiff
path: root/docs/users_guide/using-optimisation.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/users_guide/using-optimisation.rst')
-rw-r--r--docs/users_guide/using-optimisation.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/users_guide/using-optimisation.rst b/docs/users_guide/using-optimisation.rst
index 3e660c19e9..1cad51bb1b 100644
--- a/docs/users_guide/using-optimisation.rst
+++ b/docs/users_guide/using-optimisation.rst
@@ -186,6 +186,14 @@ list.
optimisation. Switching this off can be useful if you have some
``unsafePerformIO`` expressions that you don't want commoned-up.
+.. ghc-flag:: -fstg-cse
+
+ :default: on
+
+ Enables the common-sub-expression elimination optimisation on the STG
+ intermediate language, where it is able to common up some subexpressions
+ that differ in their types, but not their represetation.
+
.. ghc-flag:: -fdicts-cheap
A very experimental flag that makes dictionary-valued expressions