X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FsimplCore%2FSimplUtils.lhs;h=20f26c2ce7dd61ee368da6cff40bd21dd6fd3b97;hb=18603f72fc20954b785a2bca81bed6c5571481f6;hp=dd4cec6bc80d99a98dfa7604ec8b63b714e1c073;hpb=76dfa3944cbf149a30398d29e6762a44772c0174;p=ghc-hetmet.git diff --git a/compiler/simplCore/SimplUtils.lhs b/compiler/simplCore/SimplUtils.lhs index dd4cec6..20f26c2 100644 --- a/compiler/simplCore/SimplUtils.lhs +++ b/compiler/simplCore/SimplUtils.lhs @@ -28,6 +28,7 @@ module SimplUtils ( #include "HsVersions.h" import SimplEnv +import CoreMonad ( SimplifierMode(..), Tick(..) ) import DynFlags import StaticFlags import CoreSyn @@ -601,15 +602,13 @@ updModeForInlineRules inline_rule_act current_mode ActiveBefore {} -> mk_gentle current_mode ActiveAfter n -> mk_phase n current_mode where - no_op = SimplGently { sm_rules = False, sm_inline = False } + no_op = SimplGently { sm_rules = False, sm_inline = False } mk_gentle (SimplGently {}) = current_mode - mk_gentle _ = SimplGently { sm_rules = True, sm_inline = True } + mk_gentle _ = SimplGently { sm_rules = True, sm_inline = True } - mk_phase n (SimplPhase cp ss) - | cp > n = no_op -- Current phase earlier than n - | otherwise = SimplPhase n ss - mk_phase _ (SimplGently {}) = no_op + mk_phase n (SimplPhase _ ss) = SimplPhase n ss + mk_phase n (SimplGently {}) = SimplPhase n ["gentle-rules"] \end{code}