Make noexpand the default optimization package when configuring with -fcclazy

This commit is contained in:
hallgren
2011-09-09 13:50:38 +00:00
parent c2e7f89a0a
commit 6a5972e00d

View File

@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
module GF.Infra.Option module GF.Infra.Option
( (
-- * Option types -- * Option types
@@ -268,7 +269,11 @@ defaultFlags = Flags {
optResName = Nothing, optResName = Nothing,
optPreprocessors = [], optPreprocessors = [],
optEncoding = "latin1", optEncoding = "latin1",
#ifdef CC_LAZY
optOptimizations = Set.fromList [OptStem,OptCSE],
#else
optOptimizations = Set.fromList [OptStem,OptCSE,OptExpand,OptParametrize], optOptimizations = Set.fromList [OptStem,OptCSE,OptExpand,OptParametrize],
#endif
optOptimizePGF = False, optOptimizePGF = False,
optMkIndexPGF = False, optMkIndexPGF = False,
optCFGTransforms = Set.fromList [CFGRemoveCycles, CFGBottomUpFilter, optCFGTransforms = Set.fromList [CFGRemoveCycles, CFGBottomUpFilter,