projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
368f9fc
)
Allow more than 3 simplifier iterations to be run in phase 0
author
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Thu, 13 Dec 2007 04:08:35 +0000
(
04:08
+0000)
committer
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Thu, 13 Dec 2007 04:08:35 +0000
(
04:08
+0000)
The number of iterations during the first run of phase 0 was erroneously
hardcoded to 3. It should be *at least* 3 (see comments in code) but can be
more.
compiler/main/DynFlags.hs
patch
|
blob
|
history
diff --git
a/compiler/main/DynFlags.hs
b/compiler/main/DynFlags.hs
index
199b17e
..
c8e999a
100644
(file)
--- a/
compiler/main/DynFlags.hs
+++ b/
compiler/main/DynFlags.hs
@@
-848,7
+848,7
@@
getCoreToDo dflags
-- Phase 0: allow all Ids to be inlined now
-- This gets foldr inlined before strictness analysis
- MaxSimplifierIterations 3
+ MaxSimplifierIterations (max max_iter 3)
-- At least 3 iterations because otherwise we land up with
-- huge dead expressions because of an infelicity in the
-- simpifier.