[Git][ghc/ghc][wip/T26425] Be a little less eager to inline
Simon Peyton Jones pushed to branch wip/T26425 at Glasgow Haskell Compiler / GHC Commits: ec080d05 by Simon Peyton Jones at 2025-11-04T23:45:25+00:00 Be a little less eager to inline - - - - - 1 changed file: - compiler/GHC/Core/Opt/Simplify/Utils.hs Changes: ===================================== compiler/GHC/Core/Opt/Simplify/Utils.hs ===================================== @@ -1032,8 +1032,8 @@ interestingArg env e = go env 0 e | n > 0 = NonTrivArg -- Saturated or unknown call | otherwise -- n==0, no value arguments; look for an interesting unfolding = case idUnfolding v of - OtherCon [] -> NonTrivArg -- It's evaluated, but that's all we know - OtherCon _ -> ValueArg -- Evaluated and we know it isn't these constructors + OtherCon [] -> TrivArg -- It's evaluated, but that's all we know + OtherCon _ -> NonTrivArg -- Evaluated and we know it isn't these constructors -- See Note [OtherCon and interestingArg] DFunUnfolding {} -> ValueArg -- We konw that idArity=0 CoreUnfolding{ uf_cache = cache } View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ec080d05d53af029018ee11db9aeab1b... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ec080d05d53af029018ee11db9aeab1b... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Peyton Jones (@simonpj)