Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • compiler/GHC/Tc/Solver/Rewrite.hs
    1
    +{-# OPTIONS_GHC -fspec-constr-threshold=1200 #-}
    
    2
    +  -- This threshold (smaller than the default 2000) avoids SpecConstr from firing
    
    3
    +  -- on the inner loop of GHC.Core.Reduction.simplifyArgsWorker (inlined into
    
    4
    +  -- this module) based on a 'LiftingContext' argument, as this causes
    
    5
    +  -- significant reboxing (regressing compile-time allocations in T9872d by ~4%),
    
    6
    +  -- as per #27628.
    
    7
    +  --
    
    8
    +  -- The 1200 threshold was chosen to avoid this issue while still allowing
    
    9
    +  -- beneficial SpecConstr to fire in the rest of the module.
    
    10
    +
    
    1 11
     module GHC.Tc.Solver.Rewrite(
    
    2 12
        rewrite, rewriteForErrors, rewriteArgsNom,
    
    3 13
        rewriteType