[Git][ghc/ghc][wip/simplifier-tweaks] Try dropping the early-preInlineUnconditionally test

Simon Peyton Jones (@simonpj) gitlab at gitlab.haskell.org
Thu Jul 6 22:35:58 UTC 2023



Simon Peyton Jones pushed to branch wip/simplifier-tweaks at Glasgow Haskell Compiler / GHC


Commits:
fbec913a by Simon Peyton Jones at 2023-07-06T23:35:50+01:00
Try dropping the early-preInlineUnconditionally test

- - - - -


1 changed file:

- compiler/GHC/Core/Opt/Simplify/Iteration.hs


Changes:

=====================================
compiler/GHC/Core/Opt/Simplify/Iteration.hs
=====================================
@@ -417,6 +417,7 @@ simplAuxBind _str env bndr new_rhs
   = return (emptyFloats env, env)    --  Here c is dead, and we avoid
                                      --  creating the binding c = (a,b)
 
+{- Try not doing this
   -- The cases would be inlined unconditionally by completeBind:
   -- but it seems not uncommon, and avoids faff to do it here
   -- This is safe because it's only used for auxiliary bindings, which
@@ -429,6 +430,7 @@ simplAuxBind _str env bndr new_rhs
            , case new_rhs of
                 Coercion co -> extendCvSubst env bndr co
                 _           -> extendIdSubst env bndr (DoneEx new_rhs Nothing) )
+-}
 
   | otherwise
   = do  { -- ANF-ise the RHS



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fbec913af8ed7a42d01792c7bf6768f8996d5d2e

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fbec913af8ed7a42d01792c7bf6768f8996d5d2e
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230706/22166eb4/attachment-0001.html>


More information about the ghc-commits mailing list