Nuke the -finline-if-enough-args flag
authorsimonpj@microsoft.com <unknown>
Thu, 5 Nov 2009 12:03:59 +0000 (12:03 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 5 Nov 2009 12:03:59 +0000 (12:03 +0000)
By default INLINE functions only inline when they
are given enough arguments, so the flag isn't needed

compiler/coreSyn/CoreSubst.lhs
compiler/main/DynFlags.hs

index 3224cc2..4b42c0d 100644 (file)
@@ -13,7 +13,7 @@ module CoreSubst (
         -- ** Substituting into expressions and related types
        deShadowBinds, substSpec, substRulesForImportedIds,
        substTy, substExpr, substBind, substUnfolding,
-       substInlineRuleGuidance, lookupIdSubst, lookupTvSubst, substIdOcc,
+       substInlineRuleInfo, lookupIdSubst, lookupTvSubst, substIdOcc,
 
         -- ** Operations on substitutions
        emptySubst, mkEmptySubst, mkSubst, mkOpenSubst, substInScope, isEmptySubst, 
index ab9d821..f0feb2f 100644 (file)
@@ -279,7 +279,6 @@ data DynFlag
    | Opt_UnboxStrictFields
    | Opt_MethodSharing
    | Opt_DictsCheap
-   | Opt_InlineIfEnoughArgs
    | Opt_EnableRewriteRules            -- Apply rewrite rules during simplification
    | Opt_Vectorise
    | Opt_RegsGraph                      -- do graph coloring register allocation
@@ -1725,7 +1724,6 @@ fFlags = [
   ( "unbox-strict-fields",              Opt_UnboxStrictFields, const Supported ),
   ( "method-sharing",                   Opt_MethodSharing, const Supported ),
   ( "dicts-cheap",                      Opt_DictsCheap, const Supported ),
-  ( "inline-if-enough-args",            Opt_InlineIfEnoughArgs, const Supported ),
   ( "excess-precision",                 Opt_ExcessPrecision, const Supported ),
   ( "eager-blackholing",                Opt_EagerBlackHoling, const Supported ),
   ( "asm-mangling",                     Opt_DoAsmMangling, const Supported ),
@@ -2148,7 +2146,6 @@ setDPHOpt dflags = setOptLevel 2 (dflags { maxSimplIterations  = 20
                                          })
                    `dopt_set`   Opt_DictsCheap
                    `dopt_unset` Opt_MethodSharing
-                   `dopt_set`   Opt_InlineIfEnoughArgs
 
 data DPHBackend = DPHPar
                 | DPHSeq