Allow more than 3 simplifier iterations to be run in phase 0
[ghc-hetmet.git] / compiler / main / DynFlags.hs
index 199b17e..c8e999a 100644 (file)
@@ -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.