[Git][ghc/ghc][wip/T26831] Never eta-expand join points
Simon Peyton Jones pushed to branch wip/T26831 at Glasgow Haskell Compiler / GHC Commits: d6e6ec76 by Simon Peyton Jones at 2026-02-13T09:11:29+00:00 Never eta-expand join points - - - - - 1 changed file: - compiler/GHC/CoreToStg/Prep.hs Changes: ===================================== compiler/GHC/CoreToStg/Prep.hs ===================================== @@ -1583,6 +1583,8 @@ eta_would_wreck_join _ = False maybeSaturate :: Id -> CpeApp -> Int -> [CoreTickish] -> UniqSM CpeRhs maybeSaturate fn expr n_args unsat_ticks + | isJoinId fn -- Never eta-expand a call to a join point + = return expr | hasNoBinding fn || excess_arity > 0 = return $ wrapLamBody (mkTicks unsat_ticks) sat_expr | otherwise View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d6e6ec76152aaf59175b63624ff43e58... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d6e6ec76152aaf59175b63624ff43e58... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Peyton Jones (@simonpj)