summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2016-12-23 10:04:23 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2016-12-23 12:34:33 +0000
commit9a4af2c451baa685492ed576447c3ce2e335427d (patch)
treea2efbca37267d301c7ab5844865378faa89f45d7
parentea8f91d3915fc41f0eeabef2c773e8250b6bccb0 (diff)
downloadhaskell-9a4af2c451baa685492ed576447c3ce2e335427d.tar.gz
Comments only
-rw-r--r--compiler/simplCore/SimplCore.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/simplCore/SimplCore.hs b/compiler/simplCore/SimplCore.hs
index ca869dc8dd..8e9a9c68bb 100644
--- a/compiler/simplCore/SimplCore.hs
+++ b/compiler/simplCore/SimplCore.hs
@@ -344,6 +344,8 @@ getCoreToDo dflags
-- Final run of the demand_analyser, ensures that one-shot thunks are
-- really really one-shot thunks. Only needed if the demand analyser
-- has run at all. See Note [Final Demand Analyser run] in DmdAnal
+ -- It is EXTREMELY IMPORTANT to run this pass, otherwise execution
+ -- can become /exponentially/ more expensive. See Trac #11731, #12996.
runWhen (strictness || late_dmd_anal) CoreDoStrictness,
maybe_rule_check (Phase 0)