From ed8c9b25a7e5e1e8fa54196f542b50812163759e Mon Sep 17 00:00:00 2001 From: Roman Leshchinskiy Date: Tue, 19 May 2009 05:58:07 +0000 Subject: [PATCH] Make -Odph imply -fsimplifier-phases=3 --- compiler/main/DynFlags.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 8bf069c..3505bb6 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -2041,12 +2041,15 @@ setOptLevel n dflags -- sometimes -- -fdicts-cheap always inline dictionaries -- -fmax-simplifier-iterations20 this is necessary sometimes +-- -fsimplifier-phases=3 we use an additional simplifier phase +-- for fusion -- -fno-spec-constr-threshold run SpecConstr even for big loops -- -fno-spec-constr-count SpecConstr as much as possible -- -finline-enough-args hack to prevent excessive inlining -- setDPHOpt :: DynFlags -> DynFlags setDPHOpt dflags = setOptLevel 2 (dflags { maxSimplIterations = 20 + , simplPhases = 3 , specConstrThreshold = Nothing , specConstrCount = Nothing }) -- 1.7.10.4