summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-08-28 17:50:49 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-08-28 17:51:14 +0100
commitb7bdf13d9cf1c31f7f7eab063150aa7362d67941 (patch)
tree99e9d3210c17f48bcb73430aeb6e6e8bc3ae7cc7
parent87c1568647f22c377ca5d42e2d132faafddd5a73 (diff)
downloadhaskell-b7bdf13d9cf1c31f7f7eab063150aa7362d67941.tar.gz
Temporary fix to the crash
ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.9.20140828 for x86_64-unknown-linux): nameModule $w$smiddle_sfx6 make[1]: *** [utils/haddock/dist/build/Haddock/Backends/Xhtml.dyn_o] Error 1
-rw-r--r--compiler/main/TidyPgm.lhs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/TidyPgm.lhs b/compiler/main/TidyPgm.lhs
index ba5ccb7d67..faec956516 100644
--- a/compiler/main/TidyPgm.lhs
+++ b/compiler/main/TidyPgm.lhs
@@ -448,7 +448,7 @@ So trimAutoRules does this:
* Remove all bindings that are kept alive *only* by isAutoRule rules
* Remove all auto rules that mention bindings that have been removed
So if a binding is kept alive for some other reason (e.g. f_spec is
-called in the final code), we keep th e rule too.
+called in the final code), we keep the rule too.
I found that binary sizes jumped by 6-10% when I started to specialise
INLINE functions (again, Note [Inline specialisations] in Specialise).
@@ -459,7 +459,7 @@ Adding trimAutoRules removed all this bloat.
trimAutoRules :: [CoreBind] -> [CoreRule] -> ([CoreBind], [CoreRule])
-- See Note [Trimming auto rules]
trimAutoRules binds rules
- | null auto_rules
+ | True {- null auto_rules -} -- Temporrary fix
= (binds, rules)
| otherwise
= (binds', filter keep_rule auto_rules ++ user_rules)