diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-07-15 08:20:46 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-07-15 08:20:46 +0200 |
commit | 6489f93d146d7b6a381fc2815158240d26b5febc (patch) | |
tree | bcd3e44edf9ed1d3fdbd88e9ce59925c58408ec0 | |
parent | 06533ad580c1afee4ee9b71fa956d2b8586c118a (diff) |
Less spam
-rw-r--r-- | optimiser.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/optimiser.hs b/optimiser.hs index 2a27a5e..3163c33 100644 --- a/optimiser.hs +++ b/optimiser.hs @@ -1,10 +1,9 @@ module Optimiser(optimise) where import Data.List -import Data.Function import qualified Data.Map.Strict as Map -import Debug.Trace +-- import Debug.Trace import AST @@ -17,9 +16,9 @@ optimisations = [collectSimilar, nullOps, collectAdds, propagateKnowns, firstSets, propagateSlides, uselessEnd, specialLoops, normaliseOrder] composedOpts :: Optimisation --- composedOpts = foldl1 (.) (reverse optimisations) +composedOpts = foldl1 (.) (reverse optimisations) -- composedOpts = foldl1 (.) (map (traceShowId .) $ reverse optimisations) -composedOpts = foldl1 (.) (map ((\r -> traceShow (take 7 r) r) .) $ reverse optimisations) +-- composedOpts = foldl1 (.) (map ((\r -> traceShow (take 7 r) r) .) $ reverse optimisations) optimise :: Program -> Program optimise (Program inss) = |