Skip to content
Snippets Groups Projects
Commit 11c9fdd3 authored by Julian Seward's avatar Julian Seward
Browse files

[project @ 2000-06-20 15:31:33 by sewardj]

Force binds with coreBindsSize after every simplifier iteration.
Significantly reduces space use, especially with -O.  This could
probably be done more cleanly.
parent 74062336
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ import Rules ( RuleBase, ProtoCoreRule(..), pprProtoCoreRule, prepareLocalRuleB
import CoreUnfold
import PprCore ( pprCoreBindings )
import OccurAnal ( occurAnalyseBinds )
import CoreUtils ( exprIsTrivial, etaReduceExpr )
import CoreUtils ( exprIsTrivial, etaReduceExpr, coreBindsSize )
import Simplify ( simplTopBinds, simplExpr )
import SimplUtils ( findDefault, simplBinders )
import SimplMonad
......@@ -283,6 +283,9 @@ simplifyPgm (imported_rule_ids, rule_lhs_fvs)
| otherwise = empty
iteration us iteration_no counts binds
-- Try and force thunks off the binds; significantly reduces
-- space usage, especially with -O. JRS, 000620.
| let sz = coreBindsSize binds in sz == sz
= do {
-- Occurrence analysis
let { tagged_binds = _scc_ "OccAnal" occurAnalyseBinds binds } ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment